给您的网站加个像DZ应用中心的背景,祝大家2021新年快乐
<br /><br /><font color="#ff0000"><strong>特长声明:官方应用中心的背景图片请勿商用</strong></font><br /><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">添加方法如下:找到你现在使用模板common文件下的header.html(部份是</font></font></font></font></font><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">header.php,也是一样的</font></font></font></font></font><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">)文件,</font></font></font></font></font><br /><font face="PingFang SC, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif"><font style="font-size:15px"><font color="#000000"><font style="font-size:14px"><br /></font></font></font></font><br /><font face="PingFang SC, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif"><font style="font-size:15px"><font style="font-size:14px"><font color="#000">第一种效果</font><font color="#000000">:</font></font></font></font><br /><font face="PingFang SC, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif"><font style="font-size:15px"><font color="#000000"><font style="font-size:14px">/template/你的模板目录/common/</font></font></font></font><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">header.html(或</font></font></font></font></font><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">header.php</font></font></font></font></font><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">)</font></font></font></font></font><br /><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">在</font></font></font></font></font><font color="#000"><font face="Tahoma, &quot;"><font style="font-size:15px"><font face="&quot;"><font style="font-size:14px">在<head></head>之间加上如下代码:</font></font></font></font></font><br /><ol><li><style>body { background-image:url(您的背景图片地址); background-repeat:no-repeat; background-position: top center; padding-top:0px;}</style></ol><font face="Tahoma, &quot;"><font style="font-size:15px">注意更换成您的背景图片地址。</font></font><font color="#ff0000"><font face="Tahoma, &quot;"><font style="font-size:15px">padding-top:0px</font></font></font><font face="Tahoma, &quot;"><font style="font-size:15px">可以调整离顶部的距离。这种方法适用于非宽屏的风格,且背景图片多为宽像素的某张图片</font></font><br /><font face="Tahoma, &quot;"><font style="font-size:15px"><br /></font></font><br /><font face="Tahoma, &quot;"><font style="font-size:15px"><strong>第二种效果</strong></font></font><font face="Tahoma, &quot;"><font style="font-size:15px">,</font></font><font face="Tahoma, &quot;"><font style="font-size:15px">是给discuz论坛导航栏上方的logo位置区域添加背景图片</font></font><br /><font face="Tahoma, &quot;"><font style="font-size:15px">添加方法也超简单,找到header.htm中关于top部分的代码,找到banner所在的div层,默认应该是id=hd,在之后加入以下代码,最终代码展示为:</font></font><br /><ol><li><div id="hd" style="background-image: url(您的背景图片地址); background-repeat:no-repeat; background-position:center; background-position:top"></ol><font face="Tahoma, &quot;"><font style="font-size:15px">注意添加的图片高度要始终哦,而且不要和logo有冲突,这里也侧面证明了logo做成透明PNG格式的必要性。</font></font><br /><strong>应用中心背景图片素材(<font color="#ff0000">请勿商用,分享快乐</font>):</strong><br /><ignore_js_op><span style="white-space: nowrap" id="attach_10193" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})">bj.zip<em class="xg1">(124.77 KB, 下载次数: 415)</em></span>2021-2-7 12:04 上传点击文件名下载附件<br />官方背景图片</ignore_js_op><br />quot<em>, </em>15px<em>, </em>14px
頁:
[1]