运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <p>Click the button to get the value of the "user-select" property of the p element below.</p> <button onclick="myFunction()">Try it</button> <p id="demo" style="user-select:none">It is not possible to select this text.</p> <script> function myFunction() { alert(document.getElementById("demo").style.userSelect); } </script> </body> </html>