ÅؽºÆ® ±ÛÀÚµéÀÇ ·¹ÀÌÀÌ¿ôÀ» ÁöÁ¤ÇÏ´Â º¹ÇÕ ¸í·ÉÀ¸·Î ¹®¼ÀÇ ±×¸®µå(grid) ¼Ó¼ºµéÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
(mode) | layoutGridMode ¼Ó¼º¿¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ¸ðµå(mode) °ª ÁõÀÇ ÇϳªÀÌ´Ù. |
(type) | layoutGridType ¼Ó¼º¿¡ »ç¿ëÇÒ ¼ö ÀÖ´Â Çü½Ä(type)°ª ÁõÀÇ ÇϳªÀÌ´Ù. |
(line) | layoutGridLine ¼Ó¼º¿¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ÁÙ(line)°ª ÁõÀÇ ÇϳªÀÌ´Ù. |
(char) | layoutGridChar ¼Ó¼º¿¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ±ÛÀÚ(character)°ª ÁõÀÇ ÇϳªÀÌ´Ù. |
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ´Ù. ÀÌ ¼Ó¼ºÀÇ µðÆúÆ®°ªÀº both loose none noneÀÌ´Ù.
CSS(Cascading Style Sheets) ¾ÖÆ®¸®ºäÆ®´Â »ó¼ÓµÈ´Ù.
Áß±¹¾î, ÀϺ»¾î¿Í °°Àº ¾Æ½Ã¾Æ ¾ð¾îµé¿¡¼ ÀϹÝÀûÀ¸·Î ÀÏÂ÷¿ø ȤÀº 2Â÷¿øÀû ±×¸®µå¸¦ ÀÌ¿ëÇÏ¿© ±ÛÀÚµéÀ» À§ÇÑ ÆäÀÌÁö ·¹À̾ƿôÀ» »ý¼ºÇÑ´Ù. ÀÌ layoutGrid ¾ÖÆ®¸®ºäÆ®¸¦ »ç¿ëÇÏ¿© ÀÌ¿Í°°Àº ·¹À̾ƿôÀ» À¥ ¹®¼¿¡ Àû¿ëÇÒ ¼ö ÀÖ´Ù.
°³Ã¼ | script | CSS | IE ¹öÀü |
---|
ÀÌ ¼Ó¼ºÀº CSS(Cascading Style Sheets)ÀÇ ºÎºÐ¿¡ Æ÷ÇÔ½Ãų °ÍÀÌ Á¦¾ÈµÇ¾ú´Ù.
layoutGrid ¾ÖÆ®¸®ºäÆ®¸¦ »ç¿ëÇÏ¿© ºí·° ÅؽºÆ®ÀÇ ±ÛÀÚ ¹èÄ¡¸¦ ¼³Á¤ÇÏ¿´´Ù.
<STYLE>DIV.layout { layout-grid: both fixed 16px 12px }</STYLE> <DIV id=divObj class="layout">ÀÌ ºí·°Àº ·¹À̾ƿôµÈ ºí·°ÀÌ´Ù.<BR> This DIV is a block element. </DIV> <DIV style="color:teal"> <SCRIPT> str='document.styleSheets[1].cssText='+document.styleSheets[1].cssText+'<BR>'; str+='divObj.currentStyle.layoutGrid='+divObj.currentStyle.layoutGrid+'<BR>'; str+='divObj.currentStyle.layoutGridMode='+divObj.currentStyle.layoutGridMode+'<BR>'; str+='divObj.currentStyle.layoutGridType='+divObj.currentStyle.layoutGridType+'<BR>'; str+='divObj.currentStyle.layoutGridLine='+divObj.currentStyle.layoutGridLine+'<BR>'; str+='divObj.currentStyle.layoutGridChar='+divObj.currentStyle.layoutGridChar+'<BR>'; document.write(str); </SCRIPT> </DIV>