{"id":330,"date":"2010-04-12T23:29:38","date_gmt":"2010-04-12T23:29:38","guid":{"rendered":""},"modified":"2010-04-12T23:29:38","modified_gmt":"2010-04-12T23:29:38","slug":"330","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=330","title":{"rendered":"\u5173\u4e8e!DOCTYPE\u58f0\u660e\u5bf9JavaScript\u7684\u5f71\u54cd"},"content":{"rendered":"<p>&nbsp;&nbsp;&nbsp; DOCTYPE\u662fdocument type(\u6587\u6863\u7c7b\u578b)\u7684\u7b80\u5199\uff0c\u5728web\u8bbe\u8ba1\u4e2d\u7528\u6765\u8bf4\u660e\u4f60\u7528\u7684XHTML\u6216\u8005HTML\u662f\u4ec0\u4e48\u7248\u672c\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp; \u8981\u5efa\u7acb\u7b26\u5408\u6807\u51c6\u7684\u7f51\u9875\uff0cDOCTYPE\u58f0\u660e\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u5173\u952e\u7ec4\u6210\u90e8\u5206\uff1b\u9664\u975e\u4f60\u7684XHTML\u786e\u5b9a\u4e86\u4e00\u4e2a\u6b63\u786e\u7684DOCTYPE\uff0c\u5426\u5219\u4f60\u7684\u6807\u8bc6\u548cCSS\u90fd\u4e0d\u4f1a\u751f\u6548\uff1b\u5f53\u7136\u5bf9JS\u7684\u53d6\u503c\u4e5f\u4f1a\u6709\u5f71\u54cd\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp; DOCTYPE\u58f0\u660e\u5982\u4e0b\uff1a&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;<\/p>\n<p>&nbsp;&nbsp;&nbsp; DOCTYPE\u58f0\u660e\u5305\u62ec\uff1a\u8fc7\u6e21\u578b\uff08Transitional\uff09\uff0c\u4e25\u683c\u578b\uff08Strict\uff09\u548c\u6846\u67b6\u578b\uff08Frameset\uff09\u3002\u63a5\u4e0b\u6765\u5c31\u770b\u4e00\u4e0b\u8fd9\u4e09\u79cd\u7c7b\u578b\u5bf9\u4e0d\u540c\u6d4f\u89c8\u5668\u5728\u83b7\u53d6\u5143\u7d20\u76f8\u5173\u4fe1\u606f\u65f6\u7684\u5f71\u54cd\uff08\u5305\u62ec\u4e0d\u5b9a\u4e49DOCTYPE\u548c\u53ea\u5c06DOCTYPE\u5b9a\u4e49\u4e3a&lt;!docType&gt;\u5f62\u5f0f\uff09\uff0c\u6211\u6d4b\u8bd5\u7684\u6d4f\u89c8\u5668\u5206\u522b\u4e3a\uff1aIE6.0\u3001IE7.0\u3001IE8.0\uff08\u53d8\u6001\u6a21\u5f0f\uff09\u3001FF\u3001Opera\u3001Chrome\u548cSafari\u3002\u7531\u4e8eIE5.5\u5df2\u7ecf\u51e0\u4e4e\u88ab\u6dd8\u6c70\uff0c\u6240\u4ee5\u4e0d\u5728\u6d4b\u8bd5\u8303\u56f4\u4e4b\u5185\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp; \u4ee5\u4e0b\u5c31\u662f\u6d4b\u8bd5\u7ed3\u679c\uff08\u6eda\u52a8\u6761\u53ea\u662f\u5143\u7d20\u672c\u8eab\u7684\u6eda\u52a8\u6761\u5e76\u4e0d\u662f\u7a97\u53e3\u7684\uff09\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp; \u4e00\u3001\u8fc7\u6e21\u578b\uff08Transitional\uff09<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001\u6d4b\u8bd5IE6.0\u3001IE7.0\u4e0eIE8.0\uff08\u975e\u53d8\u6001\u6a21\u5f0fQuirks\uff09\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\uff08width\uff0cheight\uff09<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"1\">\n<tbody>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"229\">offsetWidth\uff0coffsetHeight<\/td>\n<td align=\"center\" width=\"236\">clientWidth\uff0cclientHeight<\/td>\n<td align=\"center\" width=\"65\">currentStyle[&lsquo;width&rsquo;]\uff0ccurrentStyle[&lsquo;width&rsquo;]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"229\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<br \/>\n            offsetWidth=<br \/>\n            paddingLeft+paddingRight+borderLeft+borderRight<\/p>\n<p>            offsetHeight=<br \/>\n            paddingTop+paddingBottom+borderTop+boderBottom<\/p>\n<\/td>\n<td width=\"236\">\n<p>1\u3001\u65e0\u6eda\u52a8\u6761<br \/>\n            clientWidth=CSS\u4e2d\u5b9a\u4e49\u7684\u5bbd\u5ea6+paddingLeft+paddingRight<\/p>\n<p>            clientHeight=CSS\u4e2d\u5b9a\u4e49\u7684\u9ad8\u5ea6+paddingTop+paddingBottom<br \/>\n            \uff08\u5747\u4e0d\u5305\u62ec\u8fb9\u6846\u5bbd\u5ea6\uff09<\/p>\n<p>            2\u3001\u6709\u6eda\u52a8\u6761<br \/>\n            clientWidth=CSS\u4e2d\u5b9a\u4e49\u7684\u5bbd\u5ea6-\u6eda\u52a8\u6761\u5bbd\u5ea6\uff0817\u56fa\u5b9a\u503c\uff09-\u8fb9\u6846\u5bbd\u5ea6\uff0c<\/p>\n<p>            clientHeight=CSS\u4e2d\u5b9a\u4e49\u7684\u9ad8\u5ea6-\u6eda\u52a8\u6761\u5bbd\u5ea6\uff0817\u56fa\u5b9a\u503c\uff09-\u8fb9\u6846\u5bbd\u5ea6<\/p>\n<\/td>\n<td width=\"65\">\n<p>\u5b9e\u9645\u771f\u5b9e\u5bbd\u5ea6\uff0c\u4e0d\u5305\u62ecpadding\u4e0e\u8fb9\u6846\u503c<br \/>\n            \uff08\u9664IE\u548cOpera\u4ee5\u5916\u65e0\u6b64\u5c5e\u6027\uff09<\/p>\n<\/td>\n<\/tr>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"229\">offsetLeft\uff0coffsetTop<\/td>\n<td align=\"center\" width=\"236\">clientLeft\uff0cclientTop<\/td>\n<td align=\"center\" width=\"65\">currentSytle[&lsquo;left&rsquo;]\uff0ccurrentStyle[&lsquo;top&rsquo;]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"229\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<br \/>\n            offsetLeft=\u5bf9\u8c61\u7684offsetLeft-\u8fb9\u6846<br \/>\n            offsetTop=\u5b9e\u9645\u503c<\/p>\n<\/td>\n<td width=\"236\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a\u8fb9\u6846\u7684\u5bbd\u5ea6<\/p>\n<\/td>\n<td align=\"center\" width=\"65\">\n<p>\u9664IE\u548cOpera\u4ee5\u5916\u65e0\u6b64\u5c5e\u6027<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2\u3001\u6d4b\u8bd5IE8.0\u53d8\u6001\u6a21\u5f0f(Quirks)\u7684\u5bbd\u5ea6\u4e0e\u9ad8\u5ea6\uff08width\uff0cheight\uff09<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"1\">\n<tbody>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"333\">offsetWidth\uff0coffsetHeight<\/td>\n<td align=\"center\" width=\"333\">clientWidth\uff0cclientHeight<\/td>\n<td align=\"center\" width=\"333\">currentStyle[&lsquo;width&rsquo;]\uff0ccurrentStyle[&lsquo;height]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"333\">\n<p>1\u3001\uff08\u65e0\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=\u5f53\u524d\u5bf9\u8c61\u7684\u5b9e\u9645\u6570\u503c<br \/>\n            2\u3001\uff08\u6709\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=CSS\u4e2d\u5b9a\u4e49\u7684\u6570\u503c<\/p>\n<\/td>\n<td width=\"333\">\n<p>1\u3001\uff08\u65e0\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=\u5f53\u524d\u5bf9\u8c61\u7684\u5b9e\u9645\u6570\u503c<br \/>\n            2\u3001\uff08\u6709\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=\u5f53\u524d\u5bf9\u8c61\u5728CSS\u4e2d\u5b9a\u4e49\u7684\u6570\u503c-\u6eda\u52a8\u6761\uff0817\uff09<\/p>\n<\/td>\n<td width=\"333\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<br \/>\n            \u5bbd\u5ea6\u548c\u9ad8\u5ea6\u5747\u4e3aCSS\u4e2d\u5b9a\u4e49\u7684\u6570\u503c<\/p>\n<\/td>\n<\/tr>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"333\">offsetLeft\uff0coffsetTop<\/td>\n<td align=\"center\" width=\"333\">clientLeft\uff0cclientTop<\/td>\n<td align=\"center\" width=\"333\">currentSytle[&lsquo;left&rsquo;]\uff0ccurrentStyle[&lsquo;top&rsquo;]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"333\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<\/p>\n<p>offsetLeft\uff08offsetTop\uff09=\u5b9e\u9645\u503c<\/p>\n<\/td>\n<td width=\"333\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a\u8fb9\u6846\u7684\u5bbd\u5ea6<\/p>\n<\/td>\n<td align=\"center\" width=\"333\">\n<p>\u9664IE\u548cOpera\u4ee5\u5916\u65e0\u6b64\u5c5e\u6027<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3\u3001FF\u3001Opera\u3001Safari\u548cChrom\u4e2d\u6240\u53d6\u5f97\u7684\u6570\u503c\u4e0e\u7b2c\u4e00\u79cd\u60c5\u51b5\u4e00\u6837\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp; \u4e8c\u3001\u4e25\u683c\u578b\uff08Strict\uff09<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001\u6d4b\u8bd5IE6.0\u3001IE7.0\u4e0eIE8.0\uff08\u975e\u53d8\u6001\u6a21\u5f0fQuirks\uff09\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\uff08width\uff0cheight\uff09<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"1\">\n<tbody>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"408\">offsetWidth\uff0coffsetHeight<\/td>\n<td align=\"center\" width=\"484\">clientWidth\uff0cclientHeight<\/td>\n<td align=\"center\" width=\"111\">currentStyle[&lsquo;width&rsquo;]\uff0ccurrentStyle[&lsquo;width&rsquo;]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"408\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<br \/>\n            offsetWidth=<br \/>\n            paddingLeft+paddingRight+borderLeft+borderRight<\/p>\n<p>            offsetHeight=<br \/>\n            paddingTop+paddingBottom+borderTop+boderBottom<\/p>\n<\/td>\n<td width=\"484\">\n<p>1\u3001\u65e0\u6eda\u52a8\u6761<br \/>\n            clientWidth=CSS\u4e2d\u5b9a\u4e49\u7684\u5bbd\u5ea6+paddingLeft+paddingRight<\/p>\n<p>            clientHeight=CSS\u4e2d\u5b9a\u4e49\u7684\u9ad8\u5ea6+paddingTop+paddingBottom<br \/>\n            \u5747\u4e0d\u5305\u62ec\u8fb9\u6846\u5bbd\u5ea6<\/p>\n<p>            2\u3001\u6709\u6eda\u52a8\u6761<br \/>\n            clientWidth=CSS\u4e2d\u5b9a\u4e49\u7684\u5bbd\u5ea6-\u6eda\u52a8\u6761\u5bbd\u5ea6\uff0817\u56fa\u5b9a\u503c\uff09-\u8fb9\u6846\u5bbd\u5ea6\uff0c<\/p>\n<p>            clientHeight=CSS\u4e2d\u5b9a\u4e49\u7684\u9ad8\u5ea6-\u6eda\u52a8\u6761\u5bbd\u5ea6\uff0817\u56fa\u5b9a\u503c\uff09-\u8fb9\u6846\u5bbd\u5ea6<\/p>\n<\/td>\n<td width=\"111\">\n<p>\u5b9e\u9645\u771f\u5b9e\u5bbd\u5ea6\uff0c\u4e0d\u5305\u62ecpadding\u4e0e\u8fb9\u6846\u503c<br \/>\n            \uff08\u9664IE\u548cOpera\u4ee5\u5916\u65e0\u6b64\u5c5e\u6027\uff09<\/p>\n<\/td>\n<\/tr>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"408\">offsetLeft\uff0coffsetTop<\/td>\n<td align=\"center\" width=\"484\">clientLeft\uff0cclientTop<\/td>\n<td align=\"center\" width=\"111\">currentSytle[&lsquo;left&rsquo;]\uff0ccurrentStyle[&lsquo;top&rsquo;]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"408\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<br \/>\n            offsetLeft=\u5bf9\u8c61\u7684offsetLeft-\u8fb9\u6846<br \/>\n            offsetTop=\u5b9e\u9645\u503c<\/p>\n<\/td>\n<td width=\"484\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a\u8fb9\u6846\u7684\u5bbd\u5ea6<\/p>\n<\/td>\n<td align=\"center\" width=\"111\">\n<p>\u9664IE\u548cOpera\u4ee5\u5916\u65e0\u6b64\u5c5e\u6027<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2\u3001\u6d4b\u8bd5IE8.0\u53d8\u6001\u6a21\u5f0f(Quirks)\u7684\u5bbd\u5ea6\u4e0e\u9ad8\u5ea6\uff08width\uff0cheight\uff09<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"550\" border=\"1\">\n<tbody>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"333\">offsetWidth\uff0coffsetHeight<\/td>\n<td align=\"center\" width=\"333\">clientWidth\uff0cclientHeight<\/td>\n<td align=\"center\" width=\"333\">currentStyle[&lsquo;width&rsquo;]\uff0ccurrentStyle[&lsquo;height]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"333\">\n<p>1\u3001\uff08\u65e0\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=\u5f53\u524d\u5bf9\u8c61\u7684\u5b9e\u9645\u6570\u503c<br \/>\n            2\u3001\uff08\u6709\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=CSS\u4e2d\u5b9a\u4e49\u7684\u6570\u503c<\/p>\n<\/td>\n<td width=\"333\">\n<p>1\u3001\uff08\u65e0\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=\u5f53\u524d\u5bf9\u8c61\u7684\u5b9e\u9645\u6570\u503c<br \/>\n            2\u3001\uff08\u6709\u6eda\u52a8\u6761\uff09\u5bbd\u5ea6\uff08\u9ad8\u5ea6\uff09=\u5f53\u524d\u5bf9\u8c61\u5728CSS\u4e2d\u5b9a\u4e49\u7684\u6570\u503c-\u6eda\u52a8\u6761\uff0817\uff09-\u8fb9\u6846\u5bbd\u5ea6<\/p>\n<\/td>\n<td width=\"333\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<br \/>\n            \u5bbd\u5ea6\u548c\u9ad8\u5ea6\u5747\u4e3aCSS\u4e2d\u5b9a\u4e49\u7684\u6570\u503c<br \/>\n            \uff08\u9664IE\u548cOpera\u4ee5\u5916\u65e0\u6b64\u5c5e\u6027\uff09<\/p>\n<\/td>\n<\/tr>\n<tr height=\"25\" style=\"background: #efc70e\">\n<td align=\"center\" width=\"333\">offsetLeft\uff0coffsetTop<\/td>\n<td align=\"center\" width=\"333\">clientLeft\uff0cclientTop<\/td>\n<td align=\"center\" width=\"333\">currentSytle[&lsquo;left&rsquo;]\uff0ccurrentStyle[&lsquo;top&rsquo;]<\/td>\n<\/tr>\n<tr height=\"30\">\n<td width=\"333\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a<\/p>\n<p>offsetLeft\uff08offsetTop\uff09=\u5b9e\u9645\u503c<\/p>\n<\/td>\n<td width=\"333\">\n<p>\u6709\u65e0\u6eda\u52a8\u6761\u5747\u4e3a\uff1a\u8fb9\u6846\u7684\u5bbd\u5ea6<\/p>\n<\/td>\n<td align=\"center\" width=\"333\">\n<p>\u9664IE\u548cOpera\u4ee5\u5916\u65e0\u6b64\u5c5e\u6027<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3\u3001FF\u3001Opera\u3001Safari\u548cChrom\u4e2d\u6240\u53d6\u5f97\u7684\u6570\u503c\u4e0e\u7b2c\u4e00\u79cd\u60c5\u51b5\u4e00\u6837\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp; \u4e09\u3001\u53d6\u6d88DOCTYPE\u58f0\u660e<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001IE6.0\u3001IE7.0\u5728\u6ca1\u6709DOCTYPE\u58f0\u660e\u65f6\u4e0eIE8.0\u4e2d\u7684\u53d8\u6001\u6a21\u5f0f\uff08Quirks\uff09\u4e2d\u4e25\u683c\u578b\u7ed3\u679c\u76f8\u540c\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2\u3001FF\u3001Safari\u3001Chrome\u548cIE8.0\u6807\u51c6\u6a21\u5f0f\u662f\u4e0e\u8fc7\u6e21\u578b\u7ed3\u679c\u76f8\u540c\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3\u3001Opera\u6d4f\u89c8\u5668\u4e2d\uff0c\u5728\u5143\u7d20\u6ca1\u6709\u6eda\u52a8\u6761\u65f6offsetHeight\u4e0eclientHeight\u7684\u53d6\u503c\u662f\u5728\u5176\u5f53\u524d\u73b0\u5b9e\u7684\u5927\u5c0f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp; \u56db\u3001\u5c06DOCTYPE\u58f0\u660e\u6539\u5199\u4e3a&lt;!docType&gt;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\u3001IE6.0\u3001IE7.0\u5728\u6ca1\u6709DOCTYPE\u58f0\u660e\u65f6\u4e0eIE8.0\u4e2d\u7684\u53d8\u6001\u6a21\u5f0f\uff08Quirks\uff09\u4e2d\u4e25\u683c\u578b\u7ed3\u679c\u76f8\u540c\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2\u3001FF\u3001Safari\u3001Chrome\u548cIE8.0\u6807\u51c6\u6a21\u5f0f\u662f\u4e0e\u8fc7\u6e21\u578b\u7ed3\u679c\u76f8\u540c\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3\u3001Opera\u6d4f\u89c8\u5668\u4e2d\uff0c\u5728\u5143\u7d20\u6ca1\u6709\u6eda\u52a8\u6761\u65f6offsetHeight\u4e0eclientHeight\u7684\u53d6\u503c\u662f\u5728\u5176\u5f53\u524d\u73b0\u5b9e\u7684\u5927\u5c0f\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp; \u5728Opera\u4e2d\u4e5f\u62e5\u6709\u4e0eIE\u4e00\u6837\u7684\u5c5e\u6027&ldquo;currentStyle&rdquo;\uff0c\u6240\u4ee5\u5728Opera\u4e2d\u4e5f\u53ef\u4ee5\u4f7f\u7528currentStyle\u6765\u53d6\u5f97\u5143\u7d20\u7684\u7cbe\u786e\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;&nbsp; DOCTYPE\u662fdocumen&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-Dream"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=330"}],"version-history":[{"count":0,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/330\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}