Is there user-select for Opera 10.62 and IE9?

前端 未结 5 901
耶瑟儿~
耶瑟儿~ 2020-12-28 20:48

I have been trying to apply user-select for both Opera 10.62 and IE9 without success. I can\'t/won\'t bind events with JavaScript that preventDefault()

5条回答
  •  情歌与酒
    2020-12-28 21:10

    Did you try using ::selection {color:currentColor;background:transparent}?
    For Firefox you can use ::-moz-selection.

    https://developer.mozilla.org/En/CSS/::selection
    http://msdn.microsoft.com/en-us/library/ff974109(v=VS.85).aspx
    http://reference.sitepoint.com/css/pseudoelement-selection


    // update //
    There's also the unselectable property.

提交回复
热议问题