仅使用CSS的IE和IE6黑客? [英] This IE and IE6 hack with only CSS?
本文介绍了仅使用CSS的IE和IE6黑客?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<!--[if IE]>
<style type="text/css">
#botonHome .contButton p a span{ height:25px; }
#botonHome .contButton p a span input{ position: relative; bottom:5px; }
</style>
<![endif]-->
<!--[if IE 6]>
<style type="text/css">
#botonHome .contButton p a span input{ display: inline; margin:0px; padding:0px; bottom:0px; height:20px; }
</style>
<![endif]-->
最后,我能够在所有浏览器中正确显示按钮,但我不想使用此按钮我的html文件中的内联代码。
Finally I was able to display properly a button in all browsers, but I would like not to use this inline code in my html file. How can I solve this different CSS implementations for IE using only CSS.
推荐答案
欺骗IE6只是在任何属性之前放置 _ ,例如
to trick IE6 just put "_" before any property, for example
#botonHome .contButton p a span input{ _display: inline; _margin:0px; _padding:0px; _bottom:0px; _height:20px; }
更新:
关注此链接用于 css IE黑客
这篇关于仅使用CSS的IE和IE6黑客?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文