1.应对overflow
<script type="text/javascript"> $('.foo img').css('width','100%');//修正,其实设定任意数值都可以。 </script>
2.背景全屏,IE下不会全屏,但会居中
background-size:100% 100%;background-position:center center;background-repeat: no-repeat;
1.应对overflow
<script type="text/javascript"> $('.foo img').css('width','100%');//修正,其实设定任意数值都可以。 </script>
2.背景全屏,IE下不会全屏,但会居中
background-size:100% 100%;background-position:center center;background-repeat: no-repeat;
转载于:https://www.cnblogs.com/zuoxiaobing/p/3600199.html