📄 dom_obj_screen.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML DOM Screen Object</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>HTML DOM Screen Object</h1>
<hr />
<h2>Screen Object</h2>
<p>The Screen object is actually a JavaScript object, not an HTML DOM object.. </p>
<p>The Screen object is
automatically created by the JavaScript runtime engine and contains information about the client's display screen.</p>
<p><b>IE:</b> Internet Explorer, <b>F:</b> Firefox, <b>O:</b> Opera.</p>
<h3>Screen Object Properties</h3>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th width="30%" align="left">Property</th>
<th width="57%" align="left">Description</th>
<th width="5%" align="left">IE </th>
<th width="4%" align="left">F</th>
<th width="4%" align="left">O</th>
</tr>
<tr>
<td valign="top"><a href="prop_screen_availheight.asp">availHeight</a></td>
<td valign="top">Returns the height of the display screen (excluding the
Windows Taskbar)</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_availwidth.asp">availWidth</a></td>
<td valign="top">Returns the width of the display screen (excluding the
Windows Taskbar)</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_bufferdepth.asp">bufferDepth</a></td>
<td valign="top">Sets or returns the bit depth of the color palette in the
off-screen bitmap buffer</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_colordepth.asp">colorDepth</a></td>
<td valign="top">Returns the bit depth of the color palette on the
destination device or buffer</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_devicexdpi.asp">deviceXDPI</a></td>
<td valign="top">Returns the number of horizontal dots per inch of the
display screen</td>
<td valign="top">6</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_deviceydpi.asp">deviceYDPI</a></td>
<td valign="top">Returns the number of vertical dots per inch of the display
screen</td>
<td valign="top">6</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_fontsmoothingenabled.asp">fontSmoothingEnabled</a></td>
<td valign="top">Returns whether the user has enabled font smoothing in the
display control panel</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_height.asp">height</a></td>
<td valign="top">The height of the display screen</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_logicalxdpi.asp">logicalXDPI</a></td>
<td valign="top">Returns the normal number of horizontal dots per inch of
the display screen</td>
<td valign="top">6</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_logicalydpi.asp">logicalYDPI</a></td>
<td valign="top">Returns the normal number of vertical dots per inch of the
display screen</td>
<td valign="top">6</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_pixeldepth.asp">pixelDepth</a></td>
<td valign="top">Returns the color resolution (in bits per pixel) of the
display screen</td>
<td valign="top">No</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_updateinterval.asp">updateInterval</a></td>
<td valign="top">Sets or returns the update interval for the screen</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_screen_width.asp">width</a></td>
<td valign="top">Returns width of the display screen</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
</table>
<br />
<hr />
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -