»ç¿ëÀÚ°¡ °³Ã¼ÀÇ ³»¿ëÀ» ÆíÁýÇÒ ¼ö Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ÁöÁ¤ÇÑ´Ù.
inherit | µðÆúÆ®À̸ç, ¸ðü¿¡¼ »ó¼ÓµÈ ¼Ó¼º¿¡µû¶ó »ç¿ëÀÚ°¡ °³Ã¼ÀÇ ³»¿ëÀÌ ÆíÁýÇÒ ¼ö ÀÖ´Ù. |
false | »ç¿ëÀÚ°¡ °³Ã¼ÀÇ ³»¿ëÀÌ ÆíÁýÇÒ ¼ö ¾ø´Ù. |
true | »ç¿ëÀÚ°¡ °³Ã¼ÀÇ ³»¿ëÀÌ ÆíÁýÇÒ ¼ö ÀÖ´Ù. |
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº inheritÀÌ´Ù.
ÀÌ ¼Ó¼ºÀÇ µðÆúÆ® °ªÀº inheritÀÌ¸ç ¸ðü °³Ã¼ÀÇ ¼Ó¼º°ªÀ» Àü´Þ¹Þ¾Æ Àû¿ëµÈ´Ù.
·¹À̾ƿôÀ» °¡Áö°í ÀÖÁö ¾ÊÀ¸¸é ÀÚ½Ä °³Ã¼µéÀº ÀÌ ¼Ó¼º°ªÀ» »ó¼Ó¹ÞÁö ¸øÇÑ´Ù. hasLayout ¼Ó¼ºÀ¸·Î ·¹À̾ƿô µÇ¾î ÀÖ´ÂÁö¸¦ ÆÇÁ¤ÇÒ ¼ö ÀÖ´Ù.
BODY ¿¤·¹¸àÆ®¿¡ ³ªÅ¸³ª¸é, document °³Ã¼¿¡ designMode ¼Ó¼º¿¡¼ ¼³Á¤ÇÑ °Í°ú °°Àº È¿°ú¸¦ °®´Â´Ù.
disabled ¼Ó¼ºÀÌ false·Î ¼³Á¤µÈ ¿¤·¹¸àÆ®¿¡¼´Â contentEditable ¼Ó¼º¿¡ ¹ÝÀÀÇÏÁö ¾Ê´Â´Ù.
A, MARQUEE ¿¤·¹¸àÆ®¿¡ ÀÌ ¼Ó¼ºÀÌ Àû¿ëµÇ¸é, ¼Ó¼º°ªÀÌ true·Î ¼³Á¤µÇ¾î ÀÖ´Â µ¿¾ÈÀº A, MARQUEE ¿¤·¹¸àÆ®ÀÇ ±â´É¼ºÀ» ÀÒ°Ô µÈ´Ù.
TABLE, COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR ¿¤·¹¸ÇÆ®µéÀº Á÷Á¢ÀûÀ¸·Î ³»¿ëÀ» ÆíÁýÇÏ°Ô ¼³Á¤µÉ¼ö´Â ¾øÀ¸³ª, ³»¿ëÀ» ÆíÁýÇÒ ¼ö ÀÖ´Â SPANÀ̳ª DIV ¿¤·¹¸ÇÆ®¸¦ Å×ÀÌºí °¢ Ä(TD, TH)¿¡ ¹èÄ¡½ÃÄÑ ÆíÁýÇÏ¸é µÈ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
<BODY id=bodyObj> <SCRIPT> document.write('contentEditable='+bodyObj.contentEditable) </SCRIPT>
ÆíÁýÇÒ ¼ö ÀÖ´Â Å×À̺í
Á¦¸ñ1 |
Á¦¸ñ2 |
---|---|
ÁÙ1 - Ä1 µ¥ÀÌÅÍ |
ÁÙ1 - Ä2 µ¥ÀÌÅÍ |
ÁÙ2 - Ä1 µ¥ÀÌÅÍ |
ÁÙ2 - Ä2 µ¥ÀÌÅÍ |
<P>ÆíÁýÇÒ ¼ö ÀÖ´Â Å×À̺í</P> <TABLE border=1 width=80%> <THEAD><TR><TH><DIV CONTENTEDITABLE STYLE="height:100%;width:100%;">Á¦¸ñ1</DIV></TH> <TH><DIV CONTENTEDITABLE STYLE="height:100%;width:100%;">Á¦¸ñ2</DIV></TH></TR> </THEAD> <TBODY> <TR><TD><DIV id=divObj CONTENTEDITABLE STYLE="height:100%;width:100%;">ÁÙ1 - Ä1 µ¥ÀÌÅÍ</DIV></TD> <TD><DIV CONTENTEDITABLE STYLE="height:100%;width:100%;">ÁÙ1 - Ä2 µ¥ÀÌÅÍ</DIV></TD> </TR> <TR><TD><DIV CONTENTEDITABLE STYLE="height:100%;width:100%;">ÁÙ2 - Ä1 µ¥ÀÌÅÍ</DIV></TD> <TD><DIV CONTENTEDITABLE STYLE="height:100%;width:100%;">ÁÙ2 - Ä2 µ¥ÀÌÅÍ</DIV></TD> </TR> </TBODY> </TABLE> <SCRIPT> document.write('divObj.contentEditable='+divObj.contentEditable) </SCRIPT>
<DIV id=org></DIV><BR> <BUTTON ID="butObj" onclick="changeIt()">ÆíÁý ºÒ°¡´ÉÇÏ´Ù.</BUTTON><BR> <SPAN ID="myObj" style="border:solid 1 blue;color:blue">ÀÌ ¹®ÀÚ¿À» ÆíÁýÇØ º¸¶ó.</SPAN><BR> myObj.contentEditable=<SPAN ID="curVal" style="color:blue"></SPAN> <SCRIPT> curVal.innerText=myObj.isContentEditable; org.innerHTML='myObj.contentEditable='+myObj.contentEditable+'<BR>myObj.isContentEditable='+myObj.isContentEditable; function changeIt() { currentState=myObj.isContentEditable; newState=!currentState; myObj.contentEditable=newState; curVal.innerText=newState; if(newState==true){ butObj.innerText='ÆíÁý °¡´ÉÇÏ´Ù.'; } else { butObj.innerText='ÆíÁý ºÒ°¡´ÉÇÏ´Ù'; } } </SCRIPT>