Talk:首页
From MDC
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head> <title>width/height example</title> <script type="text/javascript"> function init() {
var arrImages = new Array(3);
arrImages[0] = document.getElementById("image1");
arrImages[1] = document.getElementById("image2");
arrImages[2] = document.getElementById("image3");
var objOutput = document.getElementById("output");
var strHtml = "
* "; for (var i = 0; i < arrImages.length; i++) strHtml += "image" + (i+1) + ": height=" + arrImages[i].height + ", width=" + arrImages[i].width + ", style.height=" + arrImages[i].style.height + ", style.width=" + arrImages[i].style.width + "<\/li>"; strHtml += "<\/ul>"; objOutput.innerHTML = strHtml; } </script> </head> <body onload="init();">
Image 1: no height, width, or style <img id="image1" src="http://www.mozilla.org/images/mozilla-banner.gif">
Image 2: height="50", width="500", but no style <img id="image2" src="http://www.mozilla.org/images/mozilla-banner.gif" height="50" width="500">
Image 3: no height, width, but style="height: 50px; width: 500px;" <img id="image3" src="http://www.mozilla.org/images/mozilla-banner.gif" style="height: 50px; width: 500px;">
</body>
</html>
[编辑] 易用性会造成混淆
首页上的 Accessibility 翻译为易用性,会与 Usability 混淆,这两者是截然不同的东西。请参考说明。--BobChao 11:18 2006年12月5日 (PST)