有关web显示图片的问题。在线求教。
1440的图片。直接img里面在小于1440的分辨率下,如何让图片从中间向两边扩展?
<div style="width:100%;overflow-x:hidden;"><!--控制左右滚动条 这里写什么 0 auto ; text-center 都不行的-->
<div class="b"><img src="img/x_06.jpg" /></div>
</div>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="gbk" />
<title></title>
<style>
.test {
width:100px; height:100px;
border:1px solid red;
background:url(http://avatar.profile.csdn.net/B/3/A/1_webyellow.jpg) 50% no-repeat;
}
</style>
</head>
<body>
<img src="http://avatar.profile.csdn.net/B/3/A/1_webyellow.jpg" alt="有关web显示图片的有关问题。在线求教" />
<div class="test">
</div>
</body>
</html>