單項選擇題

在HTML頁面上包含如下創(chuàng)建層的語句,那么編寫Javascript語句實現(xiàn)顯示該層的語句錯誤的是()
< html> < body>
< div id=”imageLayer” style=”display:none;”>
< img src=”images/Sunset.jpg” width=”200” height=”100”>
< /div>
< /body>
< html>

A.document.getElementByTagName(“div”)[0].style.display=”block” 
B.document.getElementById(“imageLayer”).style.display=”block”; 
C.document.getElementByName(“imageLayer”)[0].style.display=”block”; 
D.document.getElementByName(“imageLayer”).get(0).style.display=”block”;


您可能感興趣的試卷

你可能感興趣的試題

2.單項選擇題在HTML文檔中包含如下超鏈接,要實現(xiàn)當鼠標移入該鏈接時,超鏈接文本大小變?yōu)?0px,選項中的編碼正確的是()

A.<a href=”#”onmouseover=”this.style.font-size=30px”注冊</a>
B.<a href=”#”onmouseout=”this.style.fontsize=30px”注冊</a>
C.<a href=”#”onmouseover=”this.style.fontsize=30px”注冊</a>
D.<a href=”#”onmouseout=”this.style.font-size=30px”注冊</a>