访问者屏幕:宽度访问者屏幕:宽度<!DOCTYPE html><html><body> <p id="demo"></p> <script>document.getElementById("demo").innerHTML = "屏幕宽度是:" + screen.width;</script> </body></html>