实在看不错这段代码出了啥问题,求火眼金睛
红色边框显示不出来,不知道为啥
<!DOCTYPE HTML>
<html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<head>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
<title>button</title>
<style type ="css/text">
.red{border:red 1px solid}
</style>
</head>
<body>
<h3>修改表单中按钮元素的边框</h3>
<form id="frmTest" action="#">
<input id="Button1" type="button" value="我是普通按钮" /><br />
<input id="Submit1" type="submit" value="点我就提交" /><br />
<button>
我也是普通按钮
</button><br />
</form>
</body>
<script type="text/javascript">
$("#frmTest :button").addClass("red");
</script>
</html>