一個朋友需要個寬屏,都提了快一個月了,才抽出空來幫忙修改了一下,可能會有些問題,不過大家提出來我會及時修正的
本主題帖為手工修改方法!
開啟:template/default/common/common.css 最後一行加上:
- /* Discuz */
- .wp { width:98%;}
- #hd .wp { width: 100%; }
- .hdc { margin: 0 auto; width: 98%; }
- #nv { background-repeat: repeat-x; background-position: 0 -33px; }
- #mu ul { border-bottom: 1px solid #ccc; background-image: none; background-color:#f2f2f2; }
- .ct2 { margin-left:230px;}
- .ct2 .mn { width:100%; margin-left:-230px;}
- .ct2_a .mn {width:100%}
- .ct3_a,.ct2_a { margin-left:150px;}
- .ct3_a .appl,.ct2_a .appl{ margin-left:-150px;}
- .ct3_a .mn { width:auto;}
- .pg_post .ct2_a { margin-left: 0; margin-right: 150px; }
- .pg_post .ct2_a .appl { margin-left: 0; margin-right: -150px; }
再次開啟檔案: emplatedefaulthomespace_header.htm
查詢:
- <style id="diy_style">$space[spacecss]</style>
上面加上下面這段 (更新快取!):
- <style type="text/css">
- /* BY:cr180 Discuz! 職業模板製作人*/
- .wp { width:970px;}
- .ct2 { width:970px; margin:0 auto}
- .ct2 .mn {display: inline; margin-left: 10px; width: 760px !important; }
- .ct2 .sd {width: 180px;}
- </style>
全域性寬度為 98% 自適應,如果你覺得太寬可以自行改一下即可,上面的程式碼 【98% 】 都替換成你想要的百分比寬度
請注意:
此懶人覆蓋版本適用於 Discuz!X1.5 GBK 【 R20101020 】 非此版本可能會出現問題!
如果你之前修改過:
template/default/common/common.css
template/default/homespace_header.htm
以上兩個檔案,請你參照主題帖手工修改方法進行!