日期:2014-05-17  浏览次数:20524 次

用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之前的浏览器版本不支持。

?