Using JavaScript will not work if it is disabled in the user’s browser. This method will also still work in testing, since user agent sniffing is highly unreliable.
Use a CSS media query:
@media only screen and (max-width: 770px) {
.right-col.pull-right {
display: none;
}
}
To hide this particular div only, give it another class of your own, like this:
<div class="mobile-hidden right-col pull-right">
</div>
And change the CSS to:
@media only screen and (max-width: 770px) {
.mobile-hidden {
display: none;
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…