在ie6下面,overflow与text-indent:-9999px 字体隐藏
2012-12-13 10:35
330 查看
在ie6下面 input value值 ,overflow与text-indent:-9999px 字体隐藏:
1、 使用text-indent:-9999px;可是他有一个局限性 他只适用于块级元素block,在ie6下面 input value 不起作用,要在input 样式加上:line-height:0;
font-size:0;
例如:
.sign_but1{
width:110px;
height:42px;
text-indent: -99999px;
line-height:0;
font-size:0;
float:left;
background:url(../images/login/images/login_but.png) no-repeat;
border:none;
margin:15px 25px 0 0 !important;
cursor:pointer;
}
只有这样,在ie6下面,才会如愿的将input 中的value值隐藏
1、 使用text-indent:-9999px;可是他有一个局限性 他只适用于块级元素block,在ie6下面 input value 不起作用,要在input 样式加上:line-height:0;
font-size:0;
例如:
.sign_but1{
width:110px;
height:42px;
text-indent: -99999px;
line-height:0;
font-size:0;
float:left;
background:url(../images/login/images/login_but.png) no-repeat;
border:none;
margin:15px 25px 0 0 !important;
cursor:pointer;
}
只有这样,在ie6下面,才会如愿的将input 中的value值隐藏
相关文章推荐
- overflow与text-indent:-9999px 字体隐藏及input value偏移
- overflow与text-indent:-9999px 字体隐藏及input value偏移
- overflow与text-indent:-9999px 字体隐藏及input value偏移
- overflow与text-indent:-999em 字体隐藏
- text-indent:-9999px 字体隐藏问题
- text-indent:-9999px 字体隐藏问题
- text-indent:-9999px 字体隐藏问题
- 字体隐藏(text-indent:-9999px)在IE8下的显示问题
- CSS技巧: CSS隐藏文字的方法(CSS text-indent: -9999px;)
- CSS技巧: CSS隐藏文字的方法(CSS text-indent: -9999px;)
- CSS技巧: CSS隐藏文字的方法(CSS text-indent: -9999px;)
- text-indent:-9999px隐藏文字为何失效?
- CSS技巧: CSS隐藏文字的方法(CSS text-indent: -9999px;)
- CSS技巧: CSS隐藏文字的方法(CSS text-indent: -9999px;)
- IE7 浏览器下面设置text-indent属性变成margin属性BUG
- 当inline-block和text-indent遇到IE6,IE7
- [转载]使用兼容ie6 ie7 ie8 FF的text-overflow:ellips
- html基础 text-indent 把文字移出浏览器,隐藏起来