☰
TechbrooD
英文版
主站
WOW
JS和DOM参考手册
JavaScript
对象
JavaScript Array 对象
JavaScript Boolean 对象
JavaScript Date 对象
JavaScript Math 对象
JavaScript Number 对象
JavaScript String 对象
JavaScript RegExp 对象
JavaScript 全局属性/函数
JavaScript 运算符
Browser
对象
Window 对象
Navigator 对象
Screen 对象
History 对象
Location 对象
DOM
对象
HTML DOM Document 对象
HTML DOM 元素对象
HTML DOM 属性对象
HTML DOM 事件对象
HTML
对象
<a>
<area>
<audio>
<base>
<blockquote>
<body>
<button>
<canvas>
<col>
<colgroup>
<datalist>
<del>
<details>
<dialog>
<embed>
<fieldset>
<form>
<iframe>
<frameset >
<img>
<ins>
<input> - button
<input> - checkbox
<input> - color
<input> - date
<input> - datetime
<input> - datetime-local
<input> - email
<input> - file
<input> - hidden
<input> - image
<input> - month
<input> - number
<input> - range
<input> - password
<input> - radio
<input> - reset
<input> - search
<input> - submit
<input> - text
<input> - time
<input> - url
<input> - week
<keygen>
<link>
<label>
<legend>
<li>
<map>
<menu>
<menuItem>
<meta>
<meter>
<object>
<ol>
<optgroup>
<option>
<param>
<progress>
<q>
<script>
<select>
<source>
<style>
<table>
<td>
<th>
<tr>
<textarea>
<title>
<time>
<track>
<video>
Sorry No Results For That Term
←
Screen colorDepth 属性
Screen pixelDepth 属性
→
Screen
width
属性
Screen 对象
定义和用法
width 属性声明了显示浏览器的屏幕的宽度,以像素计。
语法
screen.width
浏览器支持
所有主要浏览器都支持 width 属性
实例
实例
返回你的屏幕的总宽度:
<script>
document.write("Total Width: " + screen.width);
</script>
以上实例输出结果:
尝试一下 »
更多实例
本例包含了所有screen属性
Screen 对象
←
Screen colorDepth 属性
Screen pixelDepth 属性
→