css - div block 中的内容在移动设备中消失了吗?

标签 css wordpress twitter-bootstrap

在我的网站 http://www.xn--ntcasinon-v2a.eu/我使用下面的 @media 代码删除了移动设备中的一些内容,它工作正常,但我试图用 http://www.nya-casino.com/ 中的相同代码做完全相同的事情。并且内容在移动设备中消失。任何人都知道主题中的什么代码导致了这个?

@media only screen and (min-width: 100px) and (max-width: 780px)  {.info{display:none;}}
@media only screen and (min-width: 100px) and (max-width: 780px)  {.benefits{display:none;}}
@media only screen and (min-width: 100px) and (max-width: 780px)  {.site-title{width:70%;}}
@media only screen and (min-width: 100px) and (max-width: 780px)  {.logo img{max-height:65px;}}

最佳答案

您已将 class="hidden-xs" 分配给 .item div 中的所有 div。该类具有使内容不可见的规则:

.hidden-xs {
    display: none !important;
}

因为这是一般的 Bootstrap 规则(您可能不应该更改),您应该从 div 中删除该类。

关于css - div block 中的内容在移动设备中消失了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39900772/

相关文章:

css - 带有 ngFor 的 Angular 7 flexbox

html - 为什么 rems 并不总是以相同的结果计算

javascript - CSS active li 不正确

html - CSS 布局 : make fluid left column and fixed right column equal in height

javascript - Bootstrap 模式中的 Rails link_to

html - 使用边距或填充时,文本不会相应地留边距吗?

javascript - WordPress 脚本无法正确加载?

php - 每 3 分钟 Wordpress cronjob

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

html - 在移动设备上而不是 ipad 肖像上时让导航栏折叠 - Bootstrap