V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
VisualStudioCode
V2EX  ›  问与答

大众点评是如何阻止用户选中文字的?

  •  
  •   VisualStudioCode · 45 天前 · 1013 次点击
    这是一个创建于 45 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如这个帖子 https://m.dianping.com/ugcdetail/267585047?sceneType=0&bizType=29

    游标悬浮到右边的 user-select: none 上时,没有显示蓝色箭头。

    3 条回复    2024-08-08 20:47:56 +08:00
    wunonglin
        1
    wunonglin  
       45 天前
    body 里有 user-select: none
    VisualStudioCode
        2
    VisualStudioCode  
    OP
       45 天前
    @wunonglin 我在开发者工具里把它勾掉了,但依旧不能选中文字。
    zohar727
        3
    zohar727  
       45 天前   ❤️ 2
    @VisualStudioCode #2 它在文本上叠了一层空的 div ,你鼠标选中的空 div ,选不到文本。你把那个 `feed-content-view` div 删掉就可以选中了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5208 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:26 · PVG 15:26 · LAX 00:26 · JFK 03:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.