admin管理员组文章数量:1336576
How do you make a div disappear when reducing window width, leaving it's plete space available to other elements? I do not mean hiding piece by piece on overflow, but the whole element.
I came across this brilliant feature on the following URL:
Is javascript required or can it be done with CSS? I noticed the page is pretty much HTML5.
How do you make a div disappear when reducing window width, leaving it's plete space available to other elements? I do not mean hiding piece by piece on overflow, but the whole element.
I came across this brilliant feature on the following URL: http://flexslider.woothemes.
Is javascript required or can it be done with CSS? I noticed the page is pretty much HTML5.
Share Improve this question asked Aug 11, 2012 at 1:38 timtim 2,7303 gold badges32 silver badges48 bronze badges1 Answer
Reset to default 6You can do this with just CSS:
@media all and (max-width: 480px) {
.mydiv { display: none; }
}
本文标签: javascriptMake div disappear when reducing window widthStack Overflow
版权声明:本文标题:javascript - Make div disappear when reducing window width? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742411221a2469825.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论