°¡·Î¸Þ´º°¡ ¦¼öÀ϶§´Â »ó°ü¾øÁö¸¸,
Ȧ¼öÀ϶§ °¡·Î 100% ¸Â¾Æ¶³¾îÁöÁö°¡ ¾Ê´Â´Ù.
ex)
<ul>
<li>¸Þ´º1</li>
<li>¸Þ´º2</li>
<li>¸Þ´º3</li>
</ul>
ÇØ°á¹æ¹ý css
li{width:33%}
li:last-child {width:34%}
33%·Î´Â ¶³¾îÁöÁö ¾Ê¾Æ¼ ¸¶Áö¸· li¿¡´Â 34%·Î ÁÖ¸é °¡´ÉÇÕ´Ï´Ù.
¹Ý´ë·Î li:first-child ·Î ÇØÁ൵ µË´Ï´Ù.
°¡»ó¼±ÅÃÀÚ´Â ¿©·¯°¡Áö°¡ ÀÖÀ¸´Ï
¸µÅ©Å¸°í Âü°íÇØÁÖ¼¼¿ä.
http://www.w3.org/wiki/CSS/Selectors#Structural_pseudo-classes
Ãâó: http://blog.webmini.net/797 [À¥¹Ì´Ï ºí·Î±×]
|