For anchors that act like buttons (for example, Questions , Tags , Users , etc. at the top of the Stack Overflow page) or tabs, is there a CSS standard way to disable the highlighting effect if the user accidentally selects the text? 对于充当按钮的锚(例如,“堆栈溢出”页面顶部的“ 问题” ,“ 标签” ,“ 用户 ”等)或选项卡,是否存在CSS标准方法来禁用突出显示效果(若是用户不当心选择了文本)? app
I realize this could be done with JavaScript, and a little googling yielded the Mozilla-only -moz-user-select
option. 我意识到能够使用JavaScript来完成此操做,而且通过一番搜寻后发现了仅Mozilla的-moz-user-select
选项。 ide
Is there a standard-compliant way to accomplish this with CSS, and if not, what is the "best practice" approach? 是否有使用CSS来实现此目标的符合标准的方法,若是没有,“最佳实践”方法是什么? this