여기 내 CSS3 코드입니다.CSS3 확인 관련 문제
body
{
background-color: #fdf4d5;
font-family: "Times New Roman", Times, serif;
font-size: 100%;
line-height: 1.5;
text-align: left;
}
a
{
text-decoration: none;
}
a:link, a:visited
{
color: #C80000;
}
a:active
{
background-color: #C80000;
color: #FFF;
}
.body
{
clear: both;
margin: auto;
width: 70%;
}
.mainHeader img
{
height: auto;
margin: 0 0;
width: 100%;
}
.mainHeader nav
{
background-color: #faa01e;
border-radius: 5px;
height: 60px;
moz-border-radius: 5px;
webkit-border-radius: 5px;
}
.mainHeader nav ul
{
list-style: none;
margin: 0 auto;
}
.mainHeader nav ul li
{
color: #FFF;
display: inline;
float: left;
}
.mainHeader nav a:link, .mainHeader nav a:visited
{
color: #FFF;
display: inline-block;
height: 30px;
padding: 15px 80px;
}
.mainHeader nav a:hover, .mainHeader nav a:active, .mainHeader nav .active a:link, .mainHeader nav .active a.visited
{
background: #C80000;
color: #FFF;
text-shadow: none;
}
.mainHeader nav ul li a
{
border-radius: 5px;
height: 60px;
moz-border-radius: 5px;
webkit-border-radius: 5px;
}
.mainContent
{
border-radius: 5px;
line-height: 25px;
moz-border-radius: 5px;
webkit-border-radius: 5px;
}
.content
{
border-radius: 5px;
float: left;
moz-border-radius: 5px;
webkit-border-radius: 5px;
width: 70%;
}
.content img
{
border-radius: 5px;
height: auto;
margin: 0 0;
moz-border-radius: 5px;
webkit-border-radius: 5px;
width: 100%;
}
.content p:first-letter
{
text-transform: uppercase;
}
.content p
{
color: #000;
font-family: "Adobe Caslon Pro", "Hoefler Text", Georgia, Garamond, Times, serif;
font-size: 14pt;
font-variant: small-caps;
letter-spacing: 0.1em;
line-height: 145%;
margin: 40px auto;
text-align: left;
text-transform: lowercase;
}
.bottomContent
{
border-radius: 5px;
moz-border-radius: 5px;
padding: 3% 0;
webkit-border-radius: 5px;
}
.boxOne
{
border-radius: 5px;
float: left;
moz-border-radius: 5px;
webkit-border-radius: 5px;
width: 30%;
}
.boxTwo
{
border-radius: 5px;
float: left;
moz-border-radius: 5px;
webkit-border-radius: 5px;
width: 30%;
}
.boxOne img
{
border-radius: 5px;
height: auto;
margin: 0 0;
moz-border-radius: 5px;
webkit-border-radius: 5px;
width: 100%;
}
.boxTwo img
{
border-radius: 5px;
height: auto;
margin: 0 0;
moz-border-radius: 5px;
webkit-border-radius: 5px;
width: 100%;
}
.mainFooter
{
background-color: #FAA01E;
border-radius: 5px;
float: left;
margin: 2% 0;
moz-border-radius: 5px;
webkit-border-radius: 5px;
width: 100%;
}
.mainFooter p
{
color: #FFF;
float: right;
margin: 2% auto;
width: 92%;
}
나는 코드의 유효성을 검사하기 위해 다음 웹 사이트를 사용했습니다.
일단 내가 그것을 검증하면 많은 오류가 발생합니다. 사실 22 개의 오류와 10 개의 경고가 있습니다! 나는 혼자서 html5와 css3을 배우는 초보자입니다. 나는 지금까지이 기회를 갖게되어 정말 기쁩니다.하지만 오류를 바로 잡기 위해 당신 같은 전문가의 도움이 필요합니다. 방금이 포럼에서 도움을 받아이 CSS3 코드와 관련된 html5 코드를 수정했습니다.하지만 오류가 한 개있었습니다. 그러나이 코드는 너무 많습니다. 무엇이 잘못 되었나요? 제발 도와주세요. 대단히 감사합니다.
나는 분명히 틀린 것을 보지 못합니다. 왜 당신이 그 말을 이해하는 데 어려움을 겪고 있다면, 유효성 검사기의 결과를 https://gist.github.com 또는 유사한 것으로 복사하지 않습니까? – Plato
내가 전에 말했듯이이 css3과 관련된 css3.html5 페이지는 html5의 초보자입니다.하지만이 css3 코드의 유효성을 검사 할 때 많은 오류가 발생했습니다. 이유를 알아야합니까? 감사합니다. – user3230212