摘要:
<!doctype html><html><head><meta charset="utf-8"><title>jQuery图片上传预览(不经过后端处理)</title><script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js">< 阅读全文
2017年4月28日
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>放大镜</title> <style> *{margin:0;padding:0;list-style: none} #div1{width:200px;heigh 阅读全文
摘要:
<!DOCTYPE html><html><head> <title>Canvas射箭小游戏</title></head><style type="text/css"> body{ margin:0; background:#222; margin:20px; } svg{ width:100%; 阅读全文
摘要:
闭包就是能够读取其他函数内部变量的函数。 由于在Javascript语言中,只有函数内部的子函数才能读取局部变量,因此可以把闭包简单理解成"定义在一个函数内部的函数"。所以,在本质上,闭包就是将函数内部和函数外部连接起来的一座桥梁。闭包的用途 闭包可以用在许多地方。它的最大用处有两个,一个是前面提到 阅读全文
摘要:
a, img { -webkit-touch-callout: none; } 一. 使用rem作为单位html { font-size: 100px; }@media(min-width: 320px) { html { font-size: 100px; } }@media(min-width: 阅读全文
摘要:
input,textarea { -webkit-appearance: none;} 阅读全文
摘要:
如果想要默认的颜色显示红色,代码如下:input::-webkit-input-placeholder{color:red;}如果想要用户点击变为蓝色,代码如下:input:focus::-webkit-input-placeholder{color:blue;} 阅读全文