2016-07-15 184 views
0

问题:样式表不显示样式到页面上。CSS样式表未链接

已检查:它正确链接,甚至在检查页面时显示在源代码下,我已尝试清除缓存以确保它不是那样。

代码:

<html> 
<head> 
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
    <link rel="stylesheet" type="text/css" href="../style/reglog_style.css"> 
    <link rel="stylesheet" type="text/css" href="http://t-off.tk/style/style.css"> 

    <title>Register</title> 
</head> 
<body cz-shortcut-listen="true"> 
    <h1>This is the webpage header</h1> 
    <h2>This is the page content</h2> 
    <h1> This is the footer at the bottom of the page, it is under construction </h1> 
</body> 
</html> 

样式表:

的style.css:

<style> 
    body { 
     background: #2d343d; 
    } 
</style> 

reglog_style.css:

<style> 
    body { 
     background: #2d343d; 
    } 
</style> 

上正在发生的事情将大大任何想法赞赏,我在这里亏本。 谢谢!

+3

不要把''