html - 从 Google Chrome 样式选项卡添加 css @media

标签 html css google-chrome browser media-queries

添加纯css没有问题

.myclass1{
    padding-left: 10px;
}

通过 Google Chrome 样式选项卡(F12 -> 样式选项卡 -> 单击 + 号添加样式)。

但是,我在添加媒体查询时遇到了困难

@media (min-width: 800px){
    .myclass1{
        padding-left: 10px;
    }
}

有什么办法吗?

刚刚添加:我想将类似的 css 添加到下图中的内容。 enter image description here

最佳答案

不要进入样式,而是尝试左侧面板中的主 html,右键单击头部选项卡并单击编辑为 HTML,然后只需添加代码即可。

关于html - 从 Google Chrome 样式选项卡添加 css @media,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25077940/

相关文章:

javascript - 需要在IE窗口打开blob/PDF

javascript - Google.com 和 DOMContentLoaded

python - Google Depot Tools `gclient runhooks` 失败, "SYSTEMROOT"必须有效

html - 什么是 RDFa + 微数据/微格式,我为什么需要它们?

html - 按钮在 div 中的定位

html - 自动调整 div 容器内子 div 的高度

javascript - 单击时如何在两个图像之间进行转换?

html - 为移动尺寸的屏幕移除 css 中的 flex

python - 如何让我的用户将歌曲添加到 django 中的专辑中

javascript - 使用 jQuery 翻转图像