Prevent Highlight of Text Table

后端 未结 7 1946
悲&欢浪女
悲&欢浪女 2020-12-01 01:47

I have a table, and I\'m allowing users to \'select\' multiple rows. This is all handled using jQuery events and some CSS to visually indicate the row is \'selected\'. When

7条回答
  •  不思量自难忘°
    2020-12-01 02:08

    There is a CSS3 property for that.

    #yourTable {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    

提交回复
热议问题