那:hover是行不通的,我也不知道为什么。
您应该知道,我已经将原始代码缩减为以下几行。但是它们每个都像“内容” div一样有用。
如果我删除了width:100%;或者行position:fixed;了,但是我不知道为什么(我无法删除这些行,因为我在原始网站中使用了它们)
#content {
height: 100%;
width: 100%;
position: fixed;
left: 0;
top: 0;
}
a {
width: 100%;
}
a:hover {
font-size: 23pt;
}Run Code Online (Sandbox Code Playgroud)
<a>HOME</a>
<div id="content">
</div>Run Code Online (Sandbox Code Playgroud)