Home >Web Front-end >HTML Tutorial >Why is the first active button I wrote not highlighted? _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>
Another spelling mistake
active" type="button" value="News" />
Another spelling mistake
67c18d3926a92281ed92e999d8d742a6