项目中经常遇到,手机和电脑屏幕自适应的情况,用的次数多了 ,写个总结吧。直接上代码 :
@media screen and (max-width: 1600px) and (min-width: 1400px) {
#four_flh .flahBg ul.mile img {
width: 100%;
display: block;
margin: 0 auto;
height: 17rem;
/* height: 100%; */
&nbs