<style type="text/css">
<!--
/*在IE中*/
input {
border:expression(this.type=="text"?"1px solid red":"style");
}
/*在Firefox中*/
input[type="text"] {
border:1px solid red;
}
-->
</style>
input的CSS样式,分别对应不同的type的写法
最新推荐文章于 2025-02-20 14:54:45 发布
<style type="text/css">
<!--
/*在IE中*/
input {
border:expression(this.type=="text"?"1px solid red":"style");
}
/*在Firefox中*/
input[type="text"] {
border:1px solid red;
}
-->
</style>