gallery6_column1.html
来自「Ajax tutorial archive」· HTML 代码 · 共 38 行
HTML
38 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Introduction to Ajax Tutorial</title>
</head>
<body>
<p class="main">
Let us look at the rest of the readyState==4 conditional
branch as there is a bit going on there.
</p>
<p class="code">
<strong>Line 1:</strong> getImageSize =
document.getElementsByTagName("img")[0]
.getAttribute("width");
</p>
<p class="code">
<strong>Line 2:</strong> gallery.style.left = (pageWidth -
getImageSize) / 2+"px";
</p>
<p class="code">
<strong>Line 3:</strong> preload.style.left = (pageWidth -
getImageSize) / 2+"px";
</p>
<p class="code">
<strong>Line 4:</strong>
document.getElementById('captionLYR').style.
left = (pageWidth - getImageSize) / 2 +"px";
</p>
<p class="code">
<strong>Line 5:</strong>
document.getElementById('accessLYR').style.
visibility = "hidden";
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?