其他常用HTML 片段
2015-08-03 15:53
459 查看
//模拟select
.select_box{width:100%;height:40px;position:absolute;left:0px;top:0px;cursor:pointer;z-index:1;border:1pxsolid#d5d5d5;behavior:url(PIE_uncompressed.htc);border-radius:3px;}//注意宽度设置为100%,继承父元素的宽度
.select_box.selected{width:80%;height:40px;line-height:40px;font-size:17px;text-indent:18px;color:#343434;overflow:hidden;}//注意宽度设置为80%,并且overflow:hidden;保证文字太多不会与后面箭头重叠
.select_list_box{width:100%;/*height:150px;*//*overflow:hidden;overflow-y:scroll;*/background:#d5d5d5;}//注意1.宽度设置为100%,继承父元素的宽度。2.如果有内容太多可以放开滚动
.select_list_box.select_list{width:100%;height:40px;font-size:17px;line-height:40px;text-indent:18px;border-top:1pxsolid#f5f5f5;color:#FFF;}//注意宽度设置为100%,继承父元素的宽度
.select_list_box.select_list:hover{background:#c9c9c9;}
.select_arrow{position:absolute;right:0px;top:0px;cursor:pointer;}
.z_index6{z-index:6;}
.z_index5{z-index:5;}
.z_index4{z-index:4;}
.z_index3{z-index:3;}
.z_index2{z-index:2;}
.z_index1{z-index:1}
ViewCode
相关文章推荐
- html标签的简单介绍和使用1
- 15-07-24 HTML--框架集
- 15-07-24 HTML--表单
- 哪种PDF转换成HTML的方法好用
- 15-07-23 HTML--标签
- Html Htm SHtml的区别
- HTML <a> 标签的状态和 target 属性
- C# MVC3获取渲染后视图的HTML
- html-markdown
- HTML结构 语义化思想
- 【学习笔记】HTML 5 拖放
- 9. HTML DOM getElementsByName() 方法
- 4. HTML DOM Event 对象
- 3. HTML DOM Attribute 对象
- 2. HTML DOM Element 对象
- 1. HTML DOM Document 对象
- html 表格属性cellspacing、cellpadding
- 编写HTML格式的邮件需注意的几点
- 【HTML】DAY 4
- HTML常用标记