semantic-ui hide element for mobile view

混江龙づ霸主 提交于 2019-12-06 02:30:16

问题


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".

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


回答1:


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/



来源:https://stackoverflow.com/questions/41683267/semantic-ui-hide-element-for-mobile-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!