¡¡¡¡ÎÒÃÇÀ´¿´ÏÂÃæµÄ´úÂ룬³É¹¦µÄʵÏÖÁËÒþ²Øinput ÎÄ×Ö¡£µ«·ÖΪÈýÖÖÇé¿ö£¬ÎÒÃÇÔÚºóÃæ½øÐзÖÎö¡£
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Òþ²Ø input ÄÚÎÄ×ֵķ½·¨</title>
<style type="text/css">
/*<![CDATA[*/
input {
margin:5px 0;
width:200px;
height:20px;
display:block;
overflow:hidden;
background:#f9f9f9;
border:1px solid orange;
}
input.a {
ie:expression(bb.value="Ìá½»");
text-indent:-200em;
}
input.b {
padding-top:20px;
}
input.c {
font-size:100em
}
/*]]>*/
</style>
</head>
<body>
<input type="button" value="Ìá½»" id="bb" class="a" />
<input type="button" value="Ìá½»" class="b" />
<input type="button" value="Ìá½»" class="c" />
</body>
</body>
</html>
¡¡¡¡ÎÒÃÇÐèÒªÌØ±ð×¢²áµÄÊÇÏÂÃæµÄ´úÂ룺
input {
margin:5px 0;
width:200px;
height:20px;
display:block;
overflow:hidden;
background:#f9f9f9;
border:1px solid orange;
}
ÎÒÃÇ¿´ÏÂÃæµÄ·ÖÎö£º
µÚÒ»ÖÖ·½·¨
input.a {
ie:expression(bb.value="Ìá½»");
text-indent:-200em;
}
¡¡¡¡ÔÚoperaÉÏÓÐÎÊÌâ
µÚ¶þÖÖ·½·¨
input.b {
padding-top:20px;
}
¡¡¡¡Èç¹ûÕâ¸öֵ̫СÁËÔÚoperaÉÏÎÄ×Ö»¹Êǿɼû£¬ËùÒÔÉèÖôóһЩ¾ÍûÎÊÌâÁË£¬µ«FFÖÐÓÖ»á³öÏְѸ߶ȳŴóµÄÏÖÏó£»
µÚÈýÖÖ·½·¨
input.c {
font-size:100em
}
¡¡¡¡ÕâÖÖ·½·¨Ó¦¸Ã˵ÊǼæÈÝÐÔ×îºÃµÄ
¡¡¡¡FFÓеãbt.ÔÚpaddingµÄʱºò£¬IE£¬OPEARµÄ¸ß¶ÈÓë¿í¶È¶¼²»±ä£¬¾ÍFF±ä¡£
¹Ø±Õ´°¿Ú À´Ô´:ÍøÂç 16 2007-05-14