如果浏览器窗口处于一定宽度,如何使div不显示? [英] How do I make a div not display, if the browser window is at a certain width?
本文介绍了如果浏览器窗口处于一定宽度,如何使div不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果人员浏览器窗口太小,我想要一些图像不显示。
I want some images to not be displayed if the persons browser window is too small. Would I do this in CSS or Javasript, and if so, how?
推荐答案
@media all and (max-width: 500px){ /* max screen size */
#div { display: none; }
}
这篇关于如果浏览器窗口处于一定宽度,如何使div不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文