【发布时间】:2021-04-12 23:13:06
【问题描述】:
我可以在我的index.pug 文件的媒体查询中包含css 文件吗?我试过这样
style
<link rel="stylesheet" media="screen and (max-width: 1170px)" href="../static/respnsive.css">
但是什么也没发生。有没有其他方法可以做到这一点并使网页具有响应性?
【问题讨论】:
我可以在我的index.pug 文件的媒体查询中包含css 文件吗?我试过这样
style
<link rel="stylesheet" media="screen and (max-width: 1170px)" href="../static/respnsive.css">
但是什么也没发生。有没有其他方法可以做到这一点并使网页具有响应性?
【问题讨论】:
meta(charset='UTF-8')
meta(http-equiv='X-UA-Compatible' content='IE=edge')
meta(name='viewport' content='width=device-width, initial-scale=1.0')
title CodeXpool
link(rel='stylesheet' media='only screen and (max-device-width: 881px)' href='../static/style2.css')
【讨论】: