網域名稱俱樂部

網域名稱俱樂部 (https://www.domainclub.org/index.php)
-   電腦網路相關技術 (https://www.domainclub.org/forumdisplay.php?f=16)
-   -   網頁如何讓字型保持"適中"大小 (https://www.domainclub.org/showthread.php?t=19775)

Taipei101 2007-12-29 12:16 AM

網頁如何讓字型保持"適中"大小
 
請問一下, 做html網頁時
如何讓字型永遠保持"適中"大小

發現有些螢幕, 字體會跳到"最大"或"較大"
結果整個版面都亂掉了

有程式碼可以解決嗎?
謝謝回答^^



 

some 2007-12-29 01:47 AM

用css定義字體大小, 單位用 px 或 pt 就可以了.

xzonisy 2007-12-29 02:03 AM

css 最佳選擇,至於字體大小建議用 em 定義,這樣他會隨解析度大小自己調整更動!

some 2007-12-29 03:39 AM

引用:

作者: xzonisy (文章 116663)
css 最佳選擇,至於字體大小建議用 em 定義,這樣他會隨解析度大小自己調整更動!

taipei101兄要的不是自己調整更動....

668 2007-12-29 08:49 AM

我的網頁大部份都使用這樣

字型大小固定10

a{text-decoration:none}是去底線

不知道你合不合用

<style type="text/css">
 <!--
   body { font-size: 10pt; line-height: 1.2em }
   td  { font-size: 10pt; line-height: 1.2em }
   font  { font-size: 10pt; line-height: 1.2em }
a{text-decoration:none}
-->
</style>


所有時間均為 +8。現在的時間是 03:44 PM

Powered by vBulletin® 版本 3.8.4
版權所有 ©2000 - 2025,Jelsoft Enterprises Ltd.