html - 如何在桌面上隐藏自定义背景(超过 992px 宽度)

标签 html css responsive-design

Why is custom background showing?

为什么显示自定义背景?这是我添加的应该有效的 CSS。

    @media (min-width: 992px) {

body.custom-background {
background-image: none !important;
display: none;   }

网站链接:http://goo.gl/RgG2Ct (向下滚动,你会看到这个应该只出现在移动版本上的 strip )

最佳答案

你可以试试

@media screen and (min-width: 992px)

关于html - 如何在桌面上隐藏自定义背景(超过 992px 宽度),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33955158/

相关文章:

javascript - jQuery 错误 : TypeError: 'undefined' is not a function

html - 使用 gulp-useref 构建应用程序时尊重 CSS @import

jquery - Bootstrap 3 的关闭 Canvas (滑过)菜单

php - 显示 :table each time div appears - jquery, php、wordpress 的 div 中的替代图像位置

html - 如何使用 imgs 获得响应相等的边界?

html - CSS - 保持页面高度

javascript - 从一个段落中获取所有链接并将它们放入列表中

html - 页面布局的小问题

html - 在 html/css 中移动 View 中的水平滚动

css - 在自适应和响应式布局中处理图像