css - 媒体定义需要在任何功能之后使用块语句
问题描述
我有以下代码:
@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 行:媒体定义需要任何功能之后的块语句”,这是指代码的最后一行。
这种代码风格过去一直有效,我不确定它要求我做什么?
解决方案
推荐阅读
- performance - 在 Opencart 中使用无 cookie 域 - YSlow 推荐
- java - 从某个位置获取arraylist 10个项目
- html - 如何禁用没有任何类的标签?
- python - 在 Python 中设置一个简单的函数
- reactjs - 无法在 React 中加载 .ttf
- mysql - 具有 2 个内部连接和包容性选择优化的 Mysql 请求
- javascript - 检查是否有办法在 querySelector 之后链接函数,即使它可能是空的?
- r - 如何在 quantreg 的 cqr(审查分位数回归)函数中指定自定义分位数?
- java - 如何在 CVS 中自动复制项目
- node.js - 新的 Angular 8 应用程序返回 http 400