Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 分析错误和无法识别的仅媒体css验证_Html_Css - Fatal编程技术网

Html 分析错误和无法识别的仅媒体css验证

Html 分析错误和无法识别的仅媒体css验证,html,css,Html,Css,Css不会验证,我不断地得到这些错误。我有一个结束括号,所以我不确定问题是什么。第39行有一个分析错误。无法识别的媒体仅在第79行和第81行。然后在第79行和第89行出现解析错误。如果有人能帮忙,我将不胜感激 39. nav a:{text-decoration:none; font-weight: bold; } nav a:link {color: #ffffff;} nav a:visited {color: #808080;} nav a:hover {color: #

Css不会验证,我不断地得到这些错误。我有一个结束括号,所以我不确定问题是什么。第39行有一个分析错误。无法识别的媒体仅在第79行和第81行。然后在第79行和第89行出现解析错误。如果有人能帮忙,我将不胜感激

39.    nav a:{text-decoration:none;
    font-weight: bold;  }

nav a:link {color: #ffffff;}
nav a:visited {color: #808080;}
nav a:hover {color: #ff0000; } 

h1 {text-align: center; 
color: #ffffff; 
font-family: CustomHeaderFont}
h2 { text-align: center;
color: #ffffff; 
font-family: CustomHeaderFont}
h3 {text-align: center;
    color: #ffffff;
    font-family: CustomHeaderFont}
p { font-family: CustomFont;
color: #ffffff; 
text-align: center;}

ul li { padding: 5px 0px; }


footer { font-size: 90%;    
text-align: center;
clear: right;
padding: 15px;
color: #ffffff;
font-family: CustomFont;
}

70.   @media only screen and (max-width: 1024px){
body { margin: 0; }
#wrapper { width: auto; }
main {margin-left: 0;}
nav {float: none; width: auto; }
nav li { display: inline-block; padding: 0.5em; }
nav ul { text-align: center; }
nav a { border-style: none; }
h1, h2,h3 { font-size: 120%; }
79.    p { font-size: 90%; } }

81.    @media only screen and (max-width: 768px) {
h1, h2, h3{ font-size: 100%; }
p { font-size: 90%; }
main { margin: 0.5%;
   width: auto ;}
nav, nav ul, nav li { padding: 0;}
nav li { display: block; }
aside { display: none; }
89.    }

@font-face {
font-family: CustomFont;
src: url(Font/GlacialIndifference-Regular.otf); }

@font-face {
font-family: CustomHeaderFont;
src: url(Font/BLURRYFACE.ttf);
}

form { background-color: #000000;
        font-family: CustomFont;
        padding: 10px;
        }
fieldset{ width: 320px; 
          border: 2px ridge #ff0000;
          padding: 10px;
          margin-bottom: 10px;
          }
legend {  font-family: CustomHeaderFont;
            font-weight: bold;
        }
label { float: left;
        width: 100px;
        clear: left;
        text-align: right;
        padding-right: 10px;
        margin-top: 10px;
        font-family: CustomFont; 
    }
textarea, submit {margin-top: 10px;
                 display: block;
                 }
input checkbox {display: inline;
margin-bottom: 60px;}


table { border: 5px solid #ff0000;
        width: 600px;
        margin: auto;
        }
td, th {border: 1px solid #ff0000; 
        padding: 0.5em;
        font-family: CustomFont;}

caption { font-family: CustomHeaderFont;
          font-weight: bold;
          font-size: 1.2em;
          padding-bottom: 0.5em;
          } 

在第39行的
之后有一个
,使用一致的代码格式将使您受益匪浅。我建议总是在新的一行开始css属性,并一致地缩进它们。我会记住这一点,谢谢!谢谢你!