CSS样式表未链接

问题描述:

问题:样式表不显示样式到页面上。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

不要把''

+0

同意@SamiKuhmonen +1。另外请注意,只有你的style.css主体类才会显示,因为它会覆盖reglog_style.css表中的类 - 当加载CSS样式表命令时很重要。 –

+0

@HunterTurner没有,在Apache2日志中没有任何错误的迹象 –

如回答@SamiKuhonen,我不得不删除

<style></style>