[removed] Disable text selection via doubleclick

前端 未结 5 993
走了就别回头了
走了就别回头了 2020-12-03 02:49

When double-clicking on a html page most browsers select the word you double-click on (or the paragraph you triple-click on). Is there a way to get rid of this behavior?

5条回答
  •  旧时难觅i
    2020-12-03 03:25

    Just put this on the css interested section

     -moz-user-select     : none;
     -khtml-user-select   : none;
     -webkit-user-select  : none;
     -o-user-select       : none;
     user-select          : none;
    

提交回复
热议问题