<div id="new">
<div id="zhan">占位用的空白块</div>
<div id="ad">放广告代码</div>
[--newstext--]内容标签
</div>


CSS部分:
#zhan{
float: left; /让块靠左
clear: left; /让块的左面不能有其它块
height: 200px; /用这个来操控广告在内容里的方位
width: 1px; /
}
#ad{
height: 250px;
width: 250px;
float: left; /让块靠左
clear: left; /让块的左面不能有其它块
margin: 15px 15px 15px 0px;
}
#new img,#new table{
clear: left; /让内容里的图片和表格不会遮挡广告
}
#new{
float: left;
}

声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!

原文地址:讲解环绕广告的实现方法发布于2023-01-29 16:46:40

相关推荐