首页 新闻 会员 周边

关于background-position的问题??为什么位置不准确?

0
[已解决问题] 解决于 2012-07-18 09:27

 

<!DOCTYPE html>
<html>
<head>
<title>练习--背景定位</title>
<style type="text/css">
.box{
width:331px;
border:1px solid green;
height:311px;
background:url(images/bottom-left.gif) no-repeat left bottom;
}
</style>
</head>
<body>
<div class="box">
</div>
</body>
</html>

我设置定位在垂直的底部,绿色框背景图不是应该在底部吗?为什么将这张图片换成别的就可以处于底部了??

lisanlian的主页 lisanlian | 初学一级 | 园豆:46
提问于:2012-07-17 21:10
< >
分享
最佳答案
0

应该是你的图片,有透明的,你检查下图片!

 

CSS中背景background-position负值定位深入理解[图文]

http://www.jb51.net/css/34885.html

奖励园豆:5
张坤 | 小虾三级 |园豆:1865 | 2012-07-17 23:07

是透明的问题,谢谢。

lisanlian | 园豆:46 (初学一级) | 2012-07-18 09:27
其他回答(1)
0

Firebug 调试,看看!!!

Angkor--:-- | 园豆:1086 (小虾三级) | 2012-07-18 08:46
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册