+ -
当前位置:首页 → 问答吧 → 关于IE6中圆角图片背景的问题???

关于IE6中圆角图片背景的问题???

时间:2011-03-10

来源:互联网

小弟想做一个 圆角图片背景,
代码是 :

<!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=utf-8" />
<title>无标题文档</title>
<style>
#content_top {
       margin: 10px 0 0 0;
       background: url(images/conten_top_03.jpg) no-repeat top center;
       height: 6px;
}
#content_bg {
       background-color: #b3c1d1;
       margin: 0 auto;
       width: 953px;
       height: 500px;
}
#content_bottom{
       background: url(images/content_bottom_03.jpg) no-repeat bottom;
       height:6px;
       magrgin: 0;
}
</style>
</head>

<body>
<div id="content">
    <div id="content_top"></div>
    <div id="content_bg"></div>
    <div id="content_bottom"></div>
</div>
</body>
</html>
在FF下是可以的   但是在IE6 就不行了 ;顶部和底部的高度超出了设置的6px; 导致两个层中间有缝隙;
小弟 是在菜鸟   不知哪位大侠 指点迷津  谢过了先

[ 本帖最后由 shixianlixiang 于 2011-3-10 16:56 编辑 ]

附件

11111SJ.jpg (8.5 KB)

2011-3-10 16:52

作者: shixianlixiang   发布时间: 2011-03-10

怎么 没人 知道吗  ???

作者: shixianlixiang   发布时间: 2011-03-10

你给加高overflow 试试吧    content_top

作者: llqfront   发布时间: 2011-03-10

谢谢 3楼的大侠
我在 #content_top中加了overflow: hidden; 可以了;
但是 好像在#content_bottom中不可以用啊 ;还有没有什么解决办法啊

作者: shixianlixiang   发布时间: 2011-03-10