当前位置: 代码迷 >> Web前端 >> 在ie6上面,overflow与text-indent:9999px 字体隐藏
  详细解决方案

在ie6上面,overflow与text-indent:9999px 字体隐藏

热度:199   发布时间:2012-12-23 11:28:15.0
在ie6下面,overflow与text-indent:-9999px 字体隐藏

在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值隐藏

  相关解决方案