Date: September 9th, 2008
Cate: Diary
Tags:

GoogleAdsense广告文章中居右代码

以前也用过这样的代码,时间久了就忘记了,这次再次找出来,估计将来也有用,特别整理了下,方便下次使用.其实很简单,用CSS定义一下广告位的样式与位置.然后再网页中加入带有CSS设置样式的Adsense代码.在文章中居左还是居右显示,直接定义CSS样式即可.

.ggad {margin: 10px 5px 2px 2px;padding: 10px 0px 0px 10px;float:left;width: 300px;height: 250px;vertical-align: top;border:0px #000000 solid;} 在网页中加入<div class=”ggad>adsense广告代码</div>.

6 Comments

  1. September 10th, 2008
    REPLY))

  2. float:left; 是居左?

    Reply

    1F

  3. September 10th, 2008
    REPLY))

  4. …浮动很讨厌的,很少用这个写法

    Reply

    2F

  5. September 10th, 2008
    REPLY))

  6. 我也不用浮动

    Reply

    3F

  7. September 10th, 2008
    REPLY))

  8. 直接 ;float:left ,right ,center 就够了吧 没必要写那么多。
    其实用个插件最容易了!

    Reply

    4F

  9. September 11th, 2008
    REPLY))

  10. 呵呵~不是很精确,很多的地方都需要用着自己修改啦

    Reply

    5F

  11. September 11th, 2008
    REPLY))

  12. 学习了,呵呵。

    Reply

    6F

Leave a Reply

 Name

 Mail

 Home


:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: