html - 如何禁用图像上的突出显示

标签 html css

当我用鼠标在图像上移动并拖动时,我试图禁用图像上的突出显示, 看一看 : enter image description here

非常感谢!

最佳答案

使用user-select属性:

img{
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

关于html - 如何禁用图像上的突出显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6816080/

相关文章:

javascript - 在动态创建的 div 问题中垂直居中文本

javascript - 如何在 Chrome 中隐藏边框轻弹

javascript - 显示和隐藏一个 div 并在其他 div 之后插入

css - 如何垂直排列 flexbox 方向?

html - 在页面调整大小时拆分 Bootstrap 行

javascript - 如何将 Everything Website 从右到左转换为阿拉伯语,包括 JS 脚本?

html - Shopify tablerow 循环提前退出

html - 直接在 ngFor Angular 中重复两个元素

html - 如何在 Bulma CSS 中内联放置背景图像和文本?

javascript - 使用 jquery 拖放?