<div style="overflow: hidden; position: relative;"> <img src="img.jpg" style = "position:absolute;width:1920px;height:400px;left:50%;margin-left:-960px;"/> </div>
<div style="overflow: hidden; position: relative;"> <img src="img.jpg" style = "position:absolute;width:1920px;height:400px;left:50%;margin-left:-960px;"/> </div>
转载于:https://www.cnblogs.com/wangdahai/p/5728903.html