讲解环绕广告的实现方法

<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;
}

    本站内容均转载于互联网,并不代表本站立场!如若本站内容侵犯了原著者的合法权益,可联系我们进行处理! 拒绝任何人以任何形式在本站发表与中华人民共和国法律相抵触的言论!
    © 版权声明
    THE END
    喜欢就支持一下吧
    点赞486 分享
    评论 抢沙发

    请登录后发表评论

      暂无评论内容