这是我的代码
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
body {
font-family: 'Open Sans';
}
.navigation {
padding: 0;
margin: 0;
background: #333;
position: fixed;
top: 0;
z-index: 999;
width: 100%
li {
display: inline;
padding: 5px 10px;
a {
color: #e1e1e1;
text-decoration: none;
a:hover{color: lighten(#e1e1e1, 20%);}
}
}
}
Run Code Online (Sandbox Code Playgroud)
但每当我构建它并刷新网页时,我都会收到此错误:
Syntax error: Illegal nesting: Only properties may be nested beneath properties.
on line 23 of style.scss
Run Code Online (Sandbox Code Playgroud)
这是我的带有行号的css代码
18: z-index: 999;
19: width: 100%
20: li …Run Code Online (Sandbox Code Playgroud)