看板 Web_Design 關於我們 聯絡資訊
※ 引述《c3866142 (圓圓)》之銘言: : 請問各位大大,小妹的程式如下,我表格欄位名稱字型大小設為2,那如何讓表格內容文字 : 也設為2呢?請幫幫我吧,我試了很久,都不成功,...麻煩大家了...謝謝! : <TABLE BORDER="1"> : <TR> : <TH><font size="2">識別碼</font></TH> : <TH><font size="2">主辦單位</font></TH> : <TH><font size="2">活動主題</font></TH> : <TH><font size="2">活動日期</font></TH> : <TH><font size="2">申請進度</font></TH> : </TR> : <% : Do While Not objRS.EOF : Response.Write "<TR><TD>" & objRS("識別碼") & "</TD>" : Response.Write "<TD>" & objRS("ID") & "</TD>" : Response.Write "<TD>" & objRS("Password") & "</TD>" : Response.Write "<TD>" & objRS("Year") & "." & objRS("month") : Response.Write "<TD>" & objRS("進度") & "</TD>" : objRS.MoveNext : Loop 請捨去<font>, 善用CSS, 又 XHTML 的規範中, 標籤、屬性都是小寫 :) 參考範例如下: <style type="text/css"> #MyTable { font-size: 9pt; } #MyTable th { font-size: 10pt; } #MyTable td { font-size: 9pt; } </style> <table border="1" id="MyTable"> <tr> <th>識別碼</th> ...中略... Response.Write "<tr><td>" ...以下略... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.220.118.156 ※ 編輯: takumi412 來自: 61.220.118.156 (04/09 18:56)