CSS
czjuttsw
Learning, staying up to date, and working on the latest and greatest in languages and APIs is what keeps me excited.
展开
-
CSS cursor属性
CSS cursor 属性CSS 参考手册定义和用法cursor 属性规定要显示的光标的类型(形状)。该属性定义了鼠标指针放在一个元素边界范围内时所用的光标形状(不过 CSS2.1 没有定义由哪个边界确定这个范围)。默认值:auto继承性:yes版本:CSS2Ja原创 2013-08-12 23:31:29 · 1563 阅读 · 0 评论 -
[CSS]清除浮动的三个方法
一个没有设置高度的容器div内如果存在浮动元素(即使用了属性float:left或者float:right),那么该父级元素会无法展开。举个例子,有一个div容器,div容器里有两个小容器,分别向左和向右浮动,为了区别这三个容器,分别设置了不同颜色的边框。 .content { width:500px; border:1px solid red; } .l原创 2013-09-03 21:18:15 · 1306 阅读 · 0 评论 -
[html]自定义文件上传按钮
如果觉得文件上传按钮太难看,如果觉得上传按钮在各个浏览器上显示的效果不一致。我们可以自定义文件上传按钮。实现方案是将文件上传按钮的点击事件传递给其他按钮。.html ->文件上传.css ->#myFile { visibility: hidden; /* 隐藏 */}#myBtn { /* 在这里自定义你的原创 2014-04-01 17:48:48 · 11494 阅读 · 0 评论 -
CSS3:高亮文本选中颜色
关键字: ::selection为了个性化网站主题,可以对文本高亮背景颜色进行设置。:selection { background: #ffb7b7; /* WebKit/Blink Browsers */}::-moz-selection { background: #ffb7b7; /* Gecko Browsers */}一个简单的例子:原创 2014-09-14 18:03:02 · 16191 阅读 · 0 评论