您的位置:首页 > Web前端 > HTML

其他常用HTML 片段

2015-08-03 15:53 459 查看
1.inputplaceholder文字居中字体大小+上下padding值等于设计稿宽度 设计稿中总高度为86px


//模拟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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: