移动尺寸浏览器的设计与全屏浏览器的设计有很大不同。我想出了一个可行的解决方案(显示:无;)但这是一个好方法吗?我应该做点别的吗?
@media only screen
and (max-width:480px){
#image01{
/* sizing and positioning etc*/
display:none;
}
#image02{
/* sizing and positioning etc*/
}
h1#big{
/*sizing and positioning etc */
display:none;
}
h1#small{
/*sizing and positioning etc */
}
@media only screen
and (min-width:992px){
#image01{
/* sizing and positioning etc*/
}
#image02{
/* sizing and positioning etc*/
display:none;
}
h1#big{
/*sizing and positioning etc */
}
h1#small{
/*sizing and positioning etc */
display:none;
}
<div id="image01">
<img src="image01.jpg" alt="image01" />
</div>
<div id="image02">
<img src="image02.jpg" alt="image02" />
</div>
<h1 id="big">Big header</h1>
<h1 id="small">Small header</h1>