woff 發表於 2008-7-28 13:02:36

改變首頁字型大小

在templates\default\css.htm文件中查找以下語句


body { {BGCODE}; text-align: center; }
body, td, input, textarea, select, button { color: {TABLETEXT}; font: {FONTSIZE}/1.6em {FONT}; }
body, ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 1em; }
#menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li, .postmessage fieldset li, .side li, .formbox li, .notice li { list-style: none; }
a { color: {LINK}; text-decoration: none; }
      a:hover { text-decoration: underline; }
      a img { border: none; }
em, cite, strong, th { font-style: normal; font-weight: normal; }
table { empty-cells: show; border-collapse: collapse; }修改為


body { {BGCODE}; text-align: center; font-size: 12px;}
body, td, input, textarea, select, button { color: {TABLETEXT}; font: {FONTSIZE} {FONT}; }
body, ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin: 0; padding: 0;font-size: 12px; }
h1, h2, h3, h4, h5, h6 { font-size: 12px; }
#menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li, .postmessage fieldset li, .side li, .formbox li, .notice li { list-style: none; font-size: 12px;}
a { color: {LINK}; text-decoration: none; font-size: 12px;}
      a:hover { text-decoration: underline;font-size: 12px; }
      a img { border: none; }
em, cite, strong, th,span { font-style: normal; font-weight: normal; font-size: 12px;}
table { empty-cells: show; border-collapse: collapse;font-size: 12px; }我把字體都固定在12px了
如果你想要其他大小的字體調整一下就OK
另外我發現現在官方的程序裡啟用了em這個單位
上網搜了一下1em=16px
其他大家自己解決哈^^
頁: [1]
查看完整版本: 改變首頁字型大小