html - CSS :hover not applying in Safari

标签 html css http

下面发布的 css 代码似乎在 Internet Explorer 和谷歌浏览器中运行良好,但在 Safari 中时,a:hover 效果似乎仅在我右键单击元素或进入检查时适用元素,然后从右侧边栏中该 a 标记的选项中单击 hover。我相信这个问题可能是由于 http header 引起的,因为我在源代码中看不到任何问题。有问题的网址可用 here

有问题的 css 代码是:

#swag a:hover {
    color: black;
}

html 如下:

<p>Mouse over and click the link: 
    <div id="swag">
        <a href="http://www.example.com">example.com</a>
    </div>
</p>

最佳答案

完全重启我的 macbook 解决了我的问题。我仍然不知道问题的性质。

关于html - CSS :hover not applying in Safari,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36612116/

相关文章:

java - 如何从 Java 客户端获取 httponly cookies?

javascript - 在 inview.js 触发时进行操作

javascript - 将复选框放在标签标签内会导致 :before and :after 出现问题

html - 加入 2 div 与透视框

html - 有没有办法从 Nokogiri 获取原始 HTML?

jquery - 悬停 div 时显示 1px 间隙(在 IE8 中)

html - Summernote 模态没有填充

html - 内容具有 overflow-x : hidden 的 iframe 的水平滚动条

java - 使用 Apache Client 4.1.1 压缩 HttpPost 正文时出现问题

http - Content-Transfer-Encoding 是 HTTP header 吗?