小编Ele*_*VII的帖子

有人可以告诉我为什么a:hover不起作用吗?

那: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)

html css hover

1
推荐指数
1
解决办法
67
查看次数

标签 统计

css ×1

hover ×1

html ×1