gpt4 book ai didi

ios - Contenteditable 元素背景在元素内部触摸时闪烁

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:44:58 25 4
gpt4 key购买 nike

如何避免 contenteditable div 背景在 div 内部触摸时以灰色闪烁?
可以在 iOS Safari 或 UIWebview 对象上重现。

示例 HTML URL:http://html5demos.com/contenteditable
示例图像:https://docs.google.com/file/d/0B-On7OzzI7SZZmtLMGEzZHNfNkU/edit?usp=sharing

最佳答案

将此 css 添加到您的 div,即“contenteditable=true”

div {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

关于ios - Contenteditable 元素背景在元素内部触摸时闪烁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19686973/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com