在MVC视图中以下代码出现问题
@media screen and (max-width: 1660px) {
.mc-header-search {
max-width: 120px;
}
问题提示:The name 'media' does not exist in the current context
解决方案:加一个@进行转义
@@media screen and (max-width: 1660px) {
.mc-header-search {
max-width: 120px;
}