<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> </body> <script> document.write(`您的浏览器分辨率是:${top.innerWidth}x${top.innerHeight},缩放系数是:${top.devicePixelRatio}`) </script> </html>