一个简单的圆角效果问题,请各位大侠解释。
岩-悠然 2013-11-21 10:20:13 我想做圆角效果,有两个图片:top.gif是上面的圆角图像,bottom.gif 是下面的圆角图形,如果写这样的代码:
<html>
<head>
<style type="text/css">
.box{width:418px; background: #EFFCE7 url(bottom.gif) no-repeat left bottom;}
.box h2{background:url(top.gif) no-repeat left top;}
</style>
</head>
<body>
<div class="box">
<h2>
dfdsfd
</h2>
<p>
ddddd
</p>
</div>
</body>
<html>
没有问题,为什么改成这样的代码就有问题呢?
<html>
<head>
<style type="text/css">
.box{width:418px; border:1px solid red; background: #EFFCE7 url(bottom.gif) no-repeat left bottom;}
.box h2{background:url(top.gif) no-repeat left top;}
</style>
</head>
<body>
<div class="box">
<h2>
dfdsfd
</h2>
<p>
ddddd
</p>
</div>
</body>
<html>
好像是ie浏览器没事,google浏览器不行。