แม่แบบ:Column-count
มีการใช้แม่แบบนี้ใน หลายหน้า เพื่อหลีกเลี่ยงผลกระทบกว้างขวางและลดภาระของเซิร์ฟเวอร์ ก่อนแก้ไขแม่แบบนี้ จึงควรทดลองที่กระบะทราย, หน้าทดสอบ หรือพื้นที่ส่วนตัวของคุณ จนมั่นใจว่าไม่มีปัญหา อนึ่ง อภิปรายเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปราย |
การแบ่งเป็นคอลัมน์ในปัจจุบันรองรับเฉพาะในเบราว์เซอร์รุ่นใหม่ที่มีพื้นฐานจากเกกโก (เช่น ไฟร์ฟอกซ์) และเว็บคิต (เช่น โครม และ ซาฟารี) อินเทอร์เน็ตเอกซ์พลอเรอร์ทุกรุ่นจนถึงรุ่น 9 และโอเปร่าจนถึงรุ่น 11 ไม่รองรับการแบ่งคอลัมน์ ดูเพิ่มที่การแบ่งคอลัมน์สำหรับข้อมูลเพิ่มเติม |
This template is a shortcut for producing columns using CSS. It generates the CSS for various browsers. Supported browsers are the current versions of Firefox, Safari and Chrome.
Usage แก้
Insert this template within a style tag of any block-style element:
{{column-count | [number of columns]}}
The default number of columns is 2.
Example แก้
- <div style="{{column-count|3}}">Lorem ipsum...</div> will produce:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
See also แก้
- {{column-width}}
- {{column-rule}}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Column-count/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |