1920px宽屏图片无水平滚动条居中

来源: https://www.destoon.top/ 日期: 2019-03-01 19:56:23 人气: - 评论: 0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>宽屏图片无水平滚动条居中</title>
<style>
body { margin:0px; }
a img { border:none }
</style>
</head>

<body>
<div style="width:100%; min-width:1000px; height:500px; position:relative; overflow:hidden;">
<div style="position:absolute; left:50%; margin-left:-960px; height:500px; width:1920px; overflow:hidden;">
<a target="_blank" href="http://dreamdesign.csrjgzs.com/Article/ShowArticle.asp?/1734-1.html"><img src="http://dreamdesign.105.idcxin.com/bbs/menber/yypz/2013年夏上传/CCTV-4《中华医药》2008-2012节目视频全集.jpg" /></a>
</div>
</div>
</body>
</html>