leadbbs风格自适应各种电脑分辨率的修改《教材三》
[table]leadbbs风格自适应各种电脑分辨率的修改1:
css新增参数:
head4-----区版名称背景颜色或背景,图片大小为:120x30
head5-----除区版名称外的背景颜色或背景,图片为重复叠加,宽为任意
2:boards.asp修改:
搜索语句:
<table width="<%=def_bbs_screenwidth%>" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor=<%=def_bbs_darkcolor%> class=tbone>
<tr bgcolor=<%=def_bbs_lightdarkcolor%>><td class=tbhead><img src=images/blank.gif width=2 height=3><br><b><font color=white class=headfont>论坛及用户来访信息</font></b></td></tr>
修改为:
<table width="<%=def_bbs_screenwidth%>" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor=<%=def_bbs_darkcolor%> class=tbone>
<tr bgcolor=<%=def_bbs_lightdarkcolor%>><td colspan=2><table width=100% height=23 border=0 align=center cellpadding=0 cellspacing=0><tr><td width=119 align=center class=head4><b><font color=white class=headfont>论坛及用户来访信息</font></b></a></td><td class=head5>&nbsp;</td></tr></table></td></tr>[/table]
3:模板修改:
搜索语句
document.write("<table width=" + def_bbs_screenwidth + " border=0 cellspacing=1 cellpadding=5 align=center bgcolor=#cccccc class=tbone><tr bgcolor=#666699><td colspan=4 class=tbhead><img src=images/blank.gif width=2 height=3><br><a href=boards.asp?assort=" + boardassort + "><b><font color=white class=headfont>" + assortname + "</font></b></a></td></tr>");
修改为:
[table]document.write("<table width=" + def_bbs_screenwidth + " border=0 cellspacing=1 cellpadding=0 align=center bgcolor=#cccccc class=tbone><tr bgcolor=#666699><td colspan=4><table width=100% height=30 border=0 align=center cellpadding=0 cellspacing=0><tr><td width=120 align=center class=head4><a href=boards.asp?assort=" + boardassort + "><b><font color=white class=headfont>" + assortname + "</font></b></a></td><td class=head5>&nbsp;</td></tr></table></td></tr>");[/table]
[color=blue]注意:如果是其他模板,实际上以上是将
cellpadding=5
修改为了cellpadding=0
<td colspan=4 class=tbhead><img src=images/blank.gif width=2 height=3><br><a href=boards.asp?assort=" + boardassort + "><b><font color=white class=headfont>" + assortname + "</font></b></a></td>
修改成了
<td colspan=4><table width=100% height=30 border=0 align=center cellpadding=0 cellspacing=0><tr><td width=120 align=center class=head4><a href=boards.asp?assort=" + boardassort + "><b><font color=white class=headfont>" + assortname + "</font></b></a></td><td class=head5>&nbsp;</td></tr></table></td>[/color]
默认模板请在首页中自行对照修改
4:友情链接文件修改:
文件manage/sitemanage/sitelink.asp
搜索语句:
tempstr = tempstr & " <td class=tbhead><img src=images/null.gif width=2 height=3><br><b><font color=ffffff class=headfont>友情链接</font><b></td></tr>" & vbcrlf
修改为:
[table]tempstr = tempstr & " <td class=tbhead><table width=100% height=30 border=0 align=center cellpadding=0 cellspacing=0><tr><td width=120 align=center class=head4><b><font color=white class=headfont>友情链接</font></b></a></td><td class=head5>&nbsp;</td></tr></table><b></td></tr>" & vbcrlf[/table]
5:首部、尾部、表头、表尾自适应各种分辨率等制作参考
[url=http://qjpz.com/bbs/announce/announce.asp?boardid=3062&id=67342][color=#0000ff]http://qjpz.com/bbs/announce/announce.asp?boardid=3062&id=67342[/color][/url]
或
[url=http://w.leadbbs.com/a/a.asp?b=10&id=2245024][color=#0000ff]../a/a.asp?b=10&id=2245024[/color][/url]
演示:[url=http://2201.x3.yunliao.com/bbs/][color=#0000ff]http://2201.x3.yunliao.com/bbs/[/color][/url] 蓝色海岸
转自:http://w.leadbbs.com/a/a.asp?b=10&id=2362214 虫子真勤快。。。哈 [quote][b]下面引用由[i]蚂蚁[/i]发表的内容:[/b]
虫子真勤快。。。哈[/quote]
[EM17] 0000 [EM02]
页:
[1]