经过我的尝试,可以实现在和讯博客的自定义html中精确调整广告位置,代码如下:
<div id="headBanner" name="headBanner" style="POSITION:absolute; left: 50%; margin-left:-262px; TOP: 32px; width: 728px; height: 90px;"> 在此加入您的广告代码 </div>
其中的“margin-left:-###px”和“TOP: 32px”是调整的关键,上面代码的调整中心是顶部的中心,假如调整位置是距离顶部100点,中心偏左300点,上面相应代码调整为:
margin-left:-300px; TOP: 100px;
附:如何把广告放在和讯博客头部
1.加在头部的左边:
<div id="headBanner" name="headBanner" style="left: 0px; POSITION: absolute; TOP: 0px; width: 957px; height: 220px;">
在这里加入广告代码
</div>
2.加在头部的中间:
<div id="headBanner" name="headBanner" style="center: 0px; POSITION: absolute; TOP: 0px; width: 957px; height: 220px;">
在这里加入广告代码
</div>
1.加在头部的右边:
<div id="headBanner" name="headBanner" style="right: 0px; POSITION: absolute; TOP: 0px; width: 957px; height: 220px;">
在这里加入广告代码
</div>
如果想改动位置 上面有参数可以改
TOP: 0px;是距离等不多少
width: 957px;是宽度
height: 220px;">是高度
这些都可以改