IE7 ff opera显示的都一样,只有在ie6下不是想要的效果。
div和css代码如下
<div id="top1"><div id="top1_i"> <div id="topb">[phomead]10[/phomead] <div id="topbjs">[phomead]5[/phomead] </div></div> </div></div>
#top1 { height:90px; width:100%; float: left; } #top1_i { background:url("image/index/logo.gif") no-repeat; height:65px; width: 200px; float: left; } #topbjs { margin: 0px 0px 0px 400px; float: inherit; } /* IE6 Only */ * html #topb { margin: 7px auto auto 100px; float: left; ; height: 60px; background-image: url(image/index/search.gif); background-repeat: no-repeat; background-position: 665px 0px; padding-right: 27px; } /* IE7 Only */ *:first-child+html #topb { margin: 7px auto auto 200px; float: left; ; height: 60px; background-image: url(image/index/search.gif); background-repeat: no-repeat; background-position: 665px 0px; padding-right: 26px; } #topb { margin: 7px auto auto 200px; float: left; ; height: 60px; background-image: url(image/index/search.gif); background-repeat: no-repeat; background-position: 665px 0px; padding-right: 27px; }
想要的效果是没有快车搜索下面的文字,(要他被导航条挡住,如图所示)
上传以下图片:

|