2015-04-05 144 views
-1

這HTML代碼將不會呈現

<html> 
 
    <head> 
 
    <title>QuickLinks</title> 
 
    <style> 
 
     body{ 
 
     overflow: all; 
 
     width: 100px; 
 
     height: 100px;  
 
     } 
 
     a{ 
 
     color: blue; 
 
     text-decoration: none; 
 
     } 
 
    </head> 
 
    <body> 
 
     <a href="popup.html">Back to main</a> 
 
      <hr id="85"> 
 
     
 
      <hr id="85"> 
 
     <div id="83"> 
 
      <a href="https://github.com/jHoyne/QuickLinks/issues" target="_blank">Issues</a> 
 
     </div> 
 
    </body> 
 
</html>

不會鉻渲染。不確定其他人。文件保存爲google.html,並且用於目錄樣式的Chrome擴展,並且不會在Chrome中的任何位置渲染。

+0

溢出也沒有財產'all' https://developer.mozilla.org/en-US/docs/Web/CSS/overflow – jycr753 2015-04-05 02:16:57

+0

http://jsfiddle.net/7xvLjyoc/ – jycr753 2015-04-05 02:18:02

+1

您錯過了一個可能會給您帶來問題的結束標籤''。 – 2015-04-05 02:20:06

回答

0

我在你的代碼中建立了一些錯誤。 1.在您的代碼中沒有結束樣式標籤。 2.標籤以結束樣式標籤結束。

我修改了你的代碼。它很好。

<style> 
 
body{ 
 
     overflow: all; 
 
     width: 100px; 
 
     height: 100px;  
 
     } 
 
     a{ 
 
     color: blue; 
 
     text-decoration: none; 
 
     } 
 
    </style>
<head> </head> 
 
<title>QuickLinks</title> 
 

 
    <body> 
 
     <a href="popup.html">Back to main</a> 
 
      <hr id="85"> 
 
     
 
      <hr id="85"> 
 
     <div id="83"> 
 
      <a href="https://github.com/jHoyne/QuickLinks/issues" target="_blank">Issues</a> 
 
     </div> 
 
    </body>