Home >Web Front-end >HTML Tutorial >Why is the first active button I wrote not highlighted? _html/css_WEB-ITnose

Why is the first active button I wrote not highlighted? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:49:121174browse

<!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>



Why is the first active button I wrote not highlighted? After searching for a long time, I couldn’t find the reason


Reply to the discussion (solution)

Another spelling mistake
active" type="button" value="News" />

Another spelling mistake
67c18d3926a92281ed92e999d8d742a6

Er, I always make such low-level mistakes. If I make a mistake, I can't find it easily, and I don't report an error
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn