การกำหนดให้ CSS แสดงผลเหมือนกันในทุก Browser
บทความวันที่ 17 ธันวาคม 2555
บทความนี้ขอกล่าวถึงเรื่องการกำหนดให้ CSS แสดงผลเหมือนกันในทุก ๆ Browser ซึ่งเปรียบเสมือนการกำหนดค่าเริ่มต้นในการทำงานกับ CSS
ภาพรวมของการกำหนดให้ CSS แสดงผลเหมือนกันในทุก Browser
1. ผู้พัฒนาจำเป็นจะต้องกำหนดค่าเริ่มต้น หรือ Reset ค่าทั้งหมดของการเริ่มต้น CSS ให้เหมือกัน
2. ผู้พัฒนาสามารถใส่ Tags ต่าง ๆ ลงไปได้ และกำหนดค่าเริ่มต้นในการทำงาน
ตัวอย่างโปรแกรม
|
1
2
3
4
5
6
7
8
9
10
11
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { border: 0 none; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0 none; padding: 0; vertical-align: baseline;} |

