媒体定义在任何功能之后都需要块语句

时间:2018-11-25 20:06:13

标签: css compiler-errors less media-queries

我有以下代码:

@media only screen and (min-width: 1025px) {

nav a { font-size: 24px; border: 2px dashed @lightColor1; display: inline-block; text-decoration: none; float: left; }

nav { line-height: 1.3em; list-style: none; margin: 0; text-align: center; }

nav li { display: inline; padding: 140px; }

nav ul { text-align: center; }

body { font-size: 1.1em; }

h1 { font-size: 1.2em; font-weight: 600; }

h2 { font-size: .9em; border-bottom: 5px dashed @lightColor1; }

footer { font-size: .8em; }
}

它显示“ 190行:媒体定义要求在任何功能之后都使用块语句”,这是指代码的最后一行。

这种样式的代码过去曾经有用,我不确定它要我做什么?

0 个答案:

没有答案