首页 > 解决方案 > 媒体定义需要在任何功能之后使用块语句

问题描述

我有以下代码:

@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 行:媒体定义需要任何功能之后的块语句”,这是指代码的最后一行。

这种代码风格过去一直有效,我不确定它要求我做什么?

标签: csscompiler-errorslessmedia-queries

解决方案


推荐阅读