![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html5
骙骁
Your are a book, is the only one in the world, Don't take yourself, live into others.
展开
-
Placeholder兼容IE6以及以上版本
ie-Placeholder by hadley a{color:white;}input:focus,,textarea:focus{outline:none;border-color:#AAA;box-shadow:none;}input,textarea{padding:5px 10px;border:1px solid #CCC;font-size:12px;font-famil转载 2014-07-21 17:23:37 · 588 阅读 · 0 评论 -
canvas设置大小
canvas元素实际上有两套尺寸,一个是元素本身的大小,还有一个就是元素绘图表明的大小,设置canvas的width和height属性,实际上是同时修改了它的元素本身的大小以及元素绘图表面的大小,默认情况下canvas元素于其绘图表面都是300*150, canvas{ /*width: 600px;*/ /*height: 300px;*/原创 2016-06-15 18:56:25 · 12699 阅读 · 2 评论