当前位置: 代码迷 >> HTML/CSS >> 用Css中的Type选择器界别各Input控件
  详细解决方案

用Css中的Type选择器界别各Input控件

热度:111   发布时间:2012-07-29 15:26:13.0
用Css中的Type选择器区分各Input控件

如:

<style type="css/text">

?

input[type="text"]

{

width:200px;

}

input[type="password"]

{

width:160px;

}

input[type="radio"]

{

width:80px;

}

input[type="checkbox"]

{

width:300px;

}

input[type="button"]

{

width:90px;

}

?

</style>

注:IE6之前的浏览器版本不支持。

?

  相关解决方案