歌词怎么才能留住你:css中radio的样式问题~~~~~~~~~~~~~~~~~

来源:百度文库 编辑:高考问答 时间:2024/04/29 02:49:15
为什么radio用属性选择符写样式,效果却显示不出来,查了一下,说:IE5.5+尚不支持此种选择符,而我的IE是6.0版本,有什么好的方法让radio的样式与其他input区别开吗?前提是不能在radio本身中写class或是style。
请高手指教~~
<style type="text/css">
<!--
input{border:1px #f00 solid;}
input[type="radio"]{border:none;}
-->
</style>
<input name="123" type="text">
<input type="radio" name="radiobutton" >

如果仅是在IE6的话:
<style type="text/css">
input{border:1px #ff0000 solid;}
input{border-color:expression((this.type=="text")?"#ff9966":"#ff0000")}
</style>
<input name="123" type="text">
<input type="radio" name="radiobutton">

IE 不支持!(FIREFOX支持)只能用CLASS:
<style type="text/css">
<!--
input{border:1px #f00 solid;}
.radio{border:none;}
-->
</style>
<input name="123" type="text">
<input type="radio" name="radiobutton" class="radio">

(注意,是IE5.5+,那个“+”表现IE5.5及其以上版本,包括IE6。所以说,IE是不支持这个的!)