Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

论坛底部广告位代码问题

[复制链接]
一个人在飘 发表于 2009-11-6 09:36:14 | 显示全部楼层 |阅读模式
我要在论坛底部同时显示两张图片广告,居中显示,怎么写代码?我放了一段代码,居然是居左显示的
回复

使用道具 举报

8229444 发表于 2009-11-6 09:38:44 | 显示全部楼层
你没有让你的样式居中!!!
AD:http://www.hizhu.cn 海珠网
回复

使用道具 举报

3310643 发表于 2009-11-6 09:44:17 | 显示全部楼层
看看我的~~~~
回复

使用道具 举报

 楼主| 一个人在飘 发表于 2009-11-6 09:50:20 | 显示全部楼层
你没有让你的样式居中!!!
AD:http://www.hizhu.cn 海珠网
8229444 发表于 2009-11-6 09:38



    因为是在同一行上显示两条广告,设置样式居中的话,会让两条广告分成两行显示了,如果不设置样式居中,又会让广告居左了,真郁闷
回复

使用道具 举报

cstony 发表于 2009-11-6 10:07:29 | 显示全部楼层
林妙可的那个不错
支持一个
回复

使用道具 举报

8229444 发表于 2009-11-6 11:38:29 | 显示全部楼层
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>无标题文档</title>
  6. <style type="text/css">
  7. <!--
  8. .1a {margin: 0px auto 0px auto;clear: both;width: 960px;}
  9. .dd {width: 500px;float: left;}
  10. .dd1 {width: 460px;float: left;}
  11. -->
  12. </style>
  13. </head>

  14. <body>


  15. <div class="1a"><dt class="dd">asdfasdf</dt><dt class="dd1">asdfadsf</dt>
  16. asdfasdfasdf
  17. </div>


  18. </body>
  19. </html>
复制代码
你自己加入看看。。。
样式自己修改
回复

使用道具 举报

 楼主| 一个人在飘 发表于 2009-11-6 13:11:39 | 显示全部楼层
你自己加入看看。。。
样式自己修改
8229444 发表于 2009-11-6 11:38



    俺不会呢,呵呵!
回复

使用道具 举报

8229444 发表于 2009-11-6 15:52:21 | 显示全部楼层
.1a {margin: 0px auto 0px auto;clear: both;width: 960px;}

.dd {width: 500px;float: left;}

.dd1 {width: 460px;float: left;}
把上面样式放到样式表去!


<div class="1a"><dt class="dd">   AD1  </dt><dt class="dd1">   AD2   </dt>  AD3  </div>

AD1,2,3,就是放你的广告就OK了。。。
回复

使用道具 举报

漠北飞鹰 发表于 2009-11-6 15:53:56 | 显示全部楼层
代码问题,修改CSS样式
回复

使用道具 举报

8229444 发表于 2009-11-6 15:57:10 | 显示全部楼层
样式控制代码!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-10-14 11:15 , Processed in 0.117823 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表