« “百度更懂中文”系列广告获得艾菲奖    大话西游11月再发新版,封面甚是好看 »

美化Google Adsense



网上有过一些介绍,不过大多针对Wordpress,针对Zblog的没有。
首先,做一个背景图片,上传到模版目录中的style\default目录下,宽和高自已定义,取决于你将展示的Google Adsense广告尺寸大小。
点击看大图

然后,在模板的default.css样式表文件中加入下面的代码:
#gsbg_single {
width: 728px;
height: 90px;
background-image: url(/images/gsbg.jpg);
padding-top: 10px;
padding-left: 30px;
}

这样写也可以,道理一样:
#gsbg_single {
background: url(/images/gsbg.jpg);
padding: 10px 12px 10px 30px;
}

最后在确定你需要显示的地方,在模版中的相应地方插入下面代码:

##这里插入Google adsense代码

如果位置有所偏差,再调试一下padding-top或padding-left的值,直到位置正确就可以了。
点击看大图

via:http://www.paimm.com/blog/user1/google/archives/2006/940.shtml
http://www.supriyadisw.net/2006/07/adsense-beautifier

Post a comment

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。