【css】要素を選択不可にする
jQuery UI 1.9 で .disableSelection()
はdeprecated(非推奨)になっている1。
だから、CSSで代替する2(か、そもそもweb画面上のものを選択不可にしたりするのを止めるかした)方がいい。
* {
-ms-user-select: none; /* IE 10+ */
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
}
.selectable {
-ms-user-select: auto;
-moz-user-select: auto;
-khtml-user-select: auto;
-webkit-user-select: auto;
user-select: auto;
}
このCSS要素はOpera Mini 以外の主要ブラウザでサポートされているとのこと3。
参考と注釈
Author And Source
この問題について(【css】要素を選択不可にする), 我々は、より多くの情報をここで見つけました https://qiita.com/B73W56H84/items/97ba0110a81f85394208著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .