|
|
|
รบกวน....ผู้รู้หน่อยคับ..ขอวิธีการย่อตัวอักษร ในการแสดงข้อมูลบนเว็บ |
|
|
|
|
|
|
|
อยากให้ย่อยังไงอ่ะครับ
|
|
|
|
|
Date :
2012-12-14 11:17:01 |
By :
pokultra |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อยากย่อให้ตัวอักษร ที่แสดง มันเล็กอ่าคับ เพราะตอนนี้ ตัวอักษรมันใหญ่อยู่ มันกินเนื้อทีเยอะคับ
|
|
|
|
|
Date :
2012-12-14 11:37:38 |
By :
pongtave |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2012-12-14 11:39:37 |
By :
pongtave |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เพิ่มไฟล์นี้เข้าไปนะครับ style.css
body { background-image: url(); margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; color: #000000;}
body,td,th { font-family: MS Sans Serif; font-size: 13px; }
.headerorange { font-family: MS Sans Serif; font-size: 13px; font-weight: bold; color: #fec040; }
.headerblue { font-family: MS Sans Serif; font-size: 13px; font-weight: bold; color: #000066; }
.txtwhite { font-family: MS Sans Serif; font-size: 13px; font-weight: normal; color: #FFFFFF; }
.txtgray { font-family: MS Sans Serif; font-size: 13px; font-weight: normal; color: #999999; }
.txtwhitebold { font-family: MS Sans Serif; font-size: 13px; font-weight: bold; color: #FFFFFF; }
.txtblue { font-family: MS Sans Serif; font-size: 13px; font-weight: normal; color:#2557A4; }
.txtblack { font-family: MS Sans Serif; font-size: 13px; font-weight: normal; color:000000; }
.txtwhite { font-family: MS Sans Serif; font-size: 13px; font-weight: normal; color: #FFFFFF; }
.txtred { font-family: MS Sans Serif; font-size: 13px; font-weight: normal; color: #cf342c; }
.txtredbold { font-family: MS Sans Serif; font-size: 13px; font-weight: bold; color: #cf342c; }
.boxVisible { font-family: MS Sans Serif; font-size: 13px; color: #FFFFFF; background-color: #FFFFFF; height: 1px; border: 0}
.boxyellow { font-family: MS Sans Serif; font-size: 13px; color: #003366; background-color: #FFCC00; height: 15px; width: 150px; border: 1; font-weight: normal; }
.boxblue { font-family: MS Sans Serif; font-size: 13px; color: #FFFFFF; background-color: #000066; height: 18px; width: 100px; }
.boxbluem { font-family: MS Sans Serif; font-size: 13px; color: #FFFFFF; background-color: #000066; width: 100px; }
.boxDate { font-family: MS Sans Serif; font-size: 13px; color: #FFFFFF; background-color: #000066; height: 20px; width: 50px; }
.tabblue { font-family: MS Sans Serif; font-size: 13px; background-color: #F1F7FD; text-align: center; border: 0; }
A.whitelink:visited,A.whitelink:link { font-family: MS Sans Serif; font-weight:normal; font-size:13px; color: #ffffff; text-decoration : underline; }
A.whitelink:active,A.whitelink:hover { font-family: MS Sans Serif; font-weight:normal; font-size:13px; color: #B5D9F9; text-decoration : underline; }
A.blueblodlink:visited,A.blueblodlink:link { font-family: MS Sans Serif; font-weight:bold; font-size:13px; color: #091C5A; text-decoration : none; }
A.blueblodlink:active,A.blueblodlink:hover { font-family: MS Sans Serif; font-weight:bold; font-size:13px; color: #FEAB00; text-decoration : underline; }
A.bluelink:visited,A.bluelink:link { font-family: MS Sans Serif; font-weight:normal; font-size:13px; color: #2557A4; text-decoration : none; }
A.bluelink:active,A.bluelink:hover { font-family: MS Sans Serif; font-weight:normal; font-size:13px; color: #FE8300; text-decoration : underline; }
.headerdatagrid
{
font-weight: bold;
font-size: 13px;
color: white;
font-family: MS Sans Serif;
text-decoration:none;
background-color: #638FC1;
}
.alternatedatagrid
{
background-color: #e3f0fc;
}
.style2 {font-family:"MS Sans Serif" ; font-size: 13px;}
.style3 {font-family:"MS Sans Serif" ; font-size: 13px;}
.alert {font-family:"MS Sans Serif" ; font-size: 13px;color:red;}
.rn {font-family:"MS Sans Serif" ; font-size: 13px;color:red;font-weight: bold;}
จากนั้นหน้าที่ page ที่เรียกใช้ก็ include มาใช้ครับ ดังตัวอย่างเลยครับ ข้างล่าง
<link href="style.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
Date :
2012-12-14 11:44:24 |
By :
beerkingdom |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ใช้ style css สิครับ
ตัวอย่าง(PHP)
<style>
th{
font-size:14px;
font-weight:bold;
font-color:#c0c0c0;
text-align:center;
}
td{
font-size:13px;
font-color:#c9c9c9;
}
</style>
<table>
<tr><th>head1</th><th>head2</th><th>head3</th></tr>
<tr><td>td1</td><td>td2</td><td>td3</td></tr>
</table>
|
|
|
|
|
Date :
2012-12-14 11:45:27 |
By :
mangkunzo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้แล้วคับ....ขอบคุงคับบ mangkunzo และ พี่ๆอีก2 คนคับ
ผมใช้
Code (PHP)
<style>
th{
font-size:14px;
font-weight:bold;
font-color:#c0c0c0;
text-align:center;
}
td{
font-size:13px;
font-color:#c9c9c9;
}
</style>
|
|
|
|
|
Date :
2012-12-14 11:59:29 |
By :
pongtave |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|