html中是不是文本框就不能使用border:10px来设置边框啊?我想用CSS写个类的
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<script style="text/javascript" src="js/jquery-1.8.3.js">
</script>
<script style="text/javascript">
function id_click(){
//alert($("#username").val());
var name=$("#username").val();
$("#copyname").val(name);
}
function element_click(){
$("input").each(function(){
alert($(this).val());
});
}
function selectall_click(){
alert($("*").length);
}
function selectorn_click(){
alert($("input,ul").length);
}
</script>
<style type="text/css">
.iname{
border-color:red;
}
.uname{
# **/*border:10px;*/**
border-color:blue;
}
</style>
</head>
<body>
<input type="text" id="username" class="iname" name="username"/>
<input type="button" value="id选择器" onclick="id_click();">
<input type="text" id="copyname"class="uname"/>
<input type="button" value="元素选择器"onclick="element_click();"/>
<input type="button" value="所有元素" onclick="selectall_click();"/>
<input type="button" value="混合查找" onclick="selectorn_click();">
<div style="width:300px;height:1000px;border:1px solid red;">
<ul>
<li>足球</li>
<li>篮球</li>
<li>羽毛球</li>
<li>橄榄球</li>
<li>乒乓球</li>
</ul>
</div>
</body>
</html>
在上面的css中 有问题的语句在 . uname里面