在网页中我们经常看到各种大图很好看,比如英雄联盟官网,那么这是怎么做到的呢,方案如下: CSS代码如下: <style> #box{ width:100%; height:600px; margin:0 auto; overflow:hidden; } #box img{ position:relative; left:50%; margin-left:-960px; } </style>