html - 在 CSS 中禁用鼠标指针和链接

标签 html css wordpress href mouse-cursor

在我的网站上,我有一些页面在后台有鼠标指针/URL,我找不到为什么只有一些页面有这个事件。

我试过:

a. {
   pointer-events: none; 
}

,要禁用鼠标指针和链接,它适用于整个页面!我只希望它出现在背景中,因为如果您单击图像,您需要看到悬停 tekst(下面的链接让您更清楚我的意思)。

http://jessicadenhartog.nl/experience/

我在 HTML 中看到这些页面上出现了 itemprop,我该如何使用 CSS 更改它,因为我无法访问 Wordpress 主题中的 HTML:

<a itemprop="url"href="http://jessicadenhartog.nl/work/"style="height: 43px;"</a>

最佳答案

您应该添加以下 CSS:

a[itemprop="url"] {
  pointer-events: none;
  cursor: default;
}

关于html - 在 CSS 中禁用鼠标指针和链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44528587/

相关文章:

javascript - 在CSS中启用页面加载悬停

javascript - 仅在 IE7 中显示/隐藏 div 问题

html - CSS 选择 : how to count and select child of a specific class only?

javascript - bootstrap 4 仅滚动中间列/facebook 像滚动

css - 如何避免在 Safari 中换行?

javascript - Jquery Ajax 错误请求 400 Wordpress 小部件

javascript - iframe anchor 链接在src跳转

html - 可以设置 css3 resize 函数的样式吗?

javascript - 响应式下拉菜单不会关闭

php - 如何使用 ajax 从 PHP 循环逐步更新 div?