|
 |
|
ให้เส้น underline ติดกับข้อความต้องทำอย่างไรครับ ให้เส้น underline ติดกับข้อความต้องทำอย่างไรใน Firefox |
|
 |
|
|
 |
 |
|
Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>P@e</title>
<style type="text/css">
<!--
.style1 {
font-family: Tahoma;
text-decoration: underline;
font-size: 13px;
color: #3366CC;
}
-->
</style>
</head>
<body>
<span class="style1">บ้านเล็กในป่าใหญ่</span>
</body>
</html>
ทดสอบแล้วน่าจะเวิร์คครับ ทั้ง IE,FireFox,Chrom
|
 |
 |
 |
 |
Date :
2009-11-05 13:22:03 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมอยากทราบว่ามันเป็นเพราะอะไรหรอครับที่ทำให้เส้นมัน ชิด หรือไม่ชิดกับตัวหนังสือ
|
 |
 |
 |
 |
Date :
2009-11-05 13:26:17 |
By :
vidoublex |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2009-11-05 13:26:33 |
By :
pun05 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่แน่ใจอ่ะครับ รู้แต่ว่าควรจะใช้ Style CSS มาคลุมเพื่อบังคับให้มันเป็นไปตามที่เราต้องการอ่ะครับ  
|
 |
 |
 |
 |
Date :
2009-11-05 13:37:46 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
IE ชิดข้อความดีครับ
แต่ ff อยู่ห่างดังภาพ
แต่ตอนนี้ใช้ code ของคุณ P@e ได้แล้วคงเป็นเพราะ font ครับ
|
 |
 |
 |
 |
Date :
2009-11-05 16:34:07 |
By :
pun05 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมชอบ Tahoma มากกว่า MS San ... ครับ 
|
 |
 |
 |
 |
Date :
2009-11-05 16:40:41 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองดูแล้วอ่านง่ายดี ต่อไปนี้คงใช้ Tahoma แล้วครับ +1 ไปแล้ว
|
 |
 |
 |
 |
Date :
2009-11-05 16:47:33 |
By :
pun05 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สำหรับคนที่ใช้ IE ฟอนท์ ไม่ต่างกันหรอกครับ ดูเรียบๆเหมือนกัน แต่ถ้าใช้ FireFox ..ฯล จะรู้ซึ้งครับว่า(เล็ก-ลีบบ-อ่านไม่ออก) ครับ
|
 |
 |
 |
 |
Date :
2009-11-05 16:49:45 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กรณีนี้คล้ายๆกับ input text ที่ยืดยาวไม่ค่อยเท่ากันในบาง browser ต้องกำหนด pixel กันเลยถึงจะเวิร์ค
|
 |
 |
 |
 |
Date :
2009-11-05 19:18:58 |
By :
mr.v |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|