什么是CSS中的Parse错误?

时间:2016-12-06 20:39:31

标签: html css

我正在尝试验证我的css我得到此错误我试图通过直接输入验证(复制和粘贴)我仍然得到此错误。我试图搜索谷歌为什么我得到这个错误主要是说它与空间或{}这些括号有关但我检查了一切我仍然得到这个错误。

104分析错误}

ul {
    list-style-type: none;
    margin: 4px;
    padding: 0;
    overflow: hidden;
    background-color: #333;
    width:100%;
}

li {
    float: left;

}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 24px;
    text-decoration: none;



}

li a:hover:not(.active) {
    background-color: #111;
}

.active {
    background-color: #4CAF50;
}


table{

    table-layout: fixed;
    width: 100%;
    padding:15px;
    border-collapse:collapse;
    font-family:Georgia, "Times New Roman", Times, serif;
    border:solid #ddd 3px;
    margin-top: 8px;
    white-space:pre-line;

}

td {
    border: solid #ddd 2px;
    overflow: hidden;
    width: 100%;
    padding:10px;



}
th {
    border: solid #ddd 3px;

    width: 100%;
    text-align: left;
    padding:10px;

}
p {

    position: center;
    text-align: center;
    font-weight: bold;
}

.fix {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

h3,h2 {

font: bold italic 2em/1em "Times New Roman", "MS Serif", "New York", serif;
margin: 0;
padding: 30px;
color: #e7ce00;
text-align: center;

}

h2.login {
    text-align:center;
}
h1 {
    text-align: center;
}
.boxed {

    width: 300px;
    border: 2px solid black;
    padding: 10px;
    margin: 70px;
    transform: translateX(120%) translateY(-5%);

}   

}
input.button {
    width: 100%;
    height: 50px;
    margin-top: 5px;
}


textarea {
    width: 99%;
    height: 150px;
}
input.text
{

 padding:15px;
 border:solid #ddd 3px;
 width: 97%;
 margin-top: 5px;


}
label {
        font-size: 18px;
                }
.search {
  border: 1px solid #000000;
  padding: 10px;
  background-color: #ffe6e6;
}

1 个答案:

答案 0 :(得分:1)

你有一个额外的大括号:

.boxed {

    width: 300px;
    border: 2px solid black;
    padding: 10px;
    margin: 70px;
    transform: translateX(120%) translateY(-5%);

}   

}
input.button {
    width: 100%;
    height: 50px;
    margin-top: 5px;
}