Rumah > Artikel > hujung hadapan web > 为啥我写的active第一个按钮没高亮?_html/css_WEB-ITnose
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title>选项卡</title><style>#div1 .active{background:yellow;} #div1 div{width: 200px;height: 200px;background: yellow;border:1px solid #999;display:none;} </style></head><body><div id="div1"> <input calss="active" type="button" value="新闻" /> <input type="button" value="娱乐" /> <input type="button" value="美女" /> <input type="button" value="杂志" /> <div style="display:block;">111111</div> <div>222222</div> <div>333333</div> <div>444444</div></div></body></html>
又是拼写错误
又是拼写错误