html - 如何在 PUG 模板引擎的媒体查询中包含 CSS 文件?
问题描述
我可以css
在文件的媒体查询中包含index.pug
文件吗?我试过这样
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')
推荐阅读
- c++ - 阻止 cin 继续接受输入
- dialogflow-es - LocationPermission 上下文中的 SSML
- linux - 创建可以导入变量并针对来自外部文本文件的变量执行代码的 bash 脚本
- angular - 覆盖离子4中的工具栏后退按钮操作
- splunk - 带有 where 子句的 Splunk 搜索查询不起作用
- excel - 如何使用 LDAP 从 excel VBA 连接到 Oracle 数据库?
- r - bookdown::html_document2 中数据框分页打印的表格标题
- angular - 更改事件未在角度 6 中触发
- laravel - 如何在 laravel Echo 中获取连接状态/其他事件
- r - ggplot2中带有阴影置信区间的平均线图