移动视图的语义ui隐藏元素 [英] semantic-ui hide element for mobile view

查看:34
本文介绍了移动视图的语义ui隐藏元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找语义-ui 正确的类来隐藏例如移动视图中的 DIV.在 Bootstrap 中,我们有visible-xs"和hidden-xs".

I am looking for semantic-ui the correct class to hide for example a DIV in mobile view. In Bootstrap its easy there we have "visible-xs" and "hidden-xs".

但是在语义 ui 上我只找到了仅移动网格"

But on semantic ui I only found "mobile only grid"

推荐答案

请访问这里添加到您的覆盖 css 文件

Please visit here just add to your override css file

/* Mobile */

@media only screen and (max-width: 767px) {
[class*="mobile hidden"],
[class*="tablet only"]:not(.mobile),
[class*="computer only"]:not(.mobile),
[class*="large monitor only"]:not(.mobile),
[class*="widescreen monitor only"]:not(.mobile),
[class*="or lower hidden"] {
display: none !important;
}
}
etc...

https://jsfiddle.net/8LkLoxcx/

这篇关于移动视图的语义ui隐藏元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆