您好我最近在此处找到的网站上添加了404页:http://www.webfounded.com/404.html id“greywrap”已经存在,CSS检测样式很好,但是我添加了“404”“404title”和“404subtitle”类并添加到样式表中但是他们没有应用。这可能只是一个简单的愚蠢错误,但很难找到它。在此先感谢您的帮助!
HTML
<div id="greywrap" class="404">
<img src="http://www.webfounded.com/blog/wp-content/themes/ward/library/images/404.png"/>
<h1 class="404title">404 Error</h1>
<p class="404subtitle">Sorry. We can't seem to find the page you're looking for.</p>
</div>
CSS
.404 {
padding: 70px 0 60px;
}
.404title {
margin-top: 100px;
font-size: 72px;
line-height: 1.2;
text-transform: uppercase;
}
.404subtitle {
font-size: 38px;
text-transform: uppercase;
}
答案 0 :(得分:0)
根据规范,CSS类不应该以整数开头。如果您设置使用整数,请尝试使用\
首先转义它