请问一下,我在sublime text2里写的这段,里面的div样式为什么执行不出来,求解?样式里的display:none是为了让开始时隐藏,但在后面编辑div时有让第一个div显示,但是显示不出来
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#div1 .active(background:yellow;)
#div1 div (width:200px; height:200px; background:#CCC; border:1px; solid #999; display:none;)
</style>
</head>
<body>
<div id="div1">
<input class= "active" type="button" value="教育"/>
<input type="button" value="培训"/>
<input type="button" value="招生"/>
<input type="button" value="出国"/>
<div style= "display:block;">11111</div>
<div>2222</div>
<div>3333</div>
<div>4444</div>
</div>
</body>
</html>
你的style标签里面把
" ( ) "换成 " { } "