clip Property
clip Propety
clip Property´Â Positioning µÈ 4°¢Çü Block Box¸¦ ÁöÁ¤ÇÏ´Â ¼öÄ¡¸¸Å °¡·Á¼ ¾È º¸À̵µ·Ï ÇØ ÁÖ´Â PropertyÀÔ´Ï´Ù. clip µÇ´Â Box´Â ¹Ýµå½Ã { position : absolute }·Î ÁöÁ¤µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.
[Ç¥ º¸´Â ¹æ¹ý]
| clip Property |
| Value |
<shape> | auto | Inherit |
| Initial |
auto |
| Applies to |
block-level and replaced elements |
| Inherited |
no |
| Percentages |
N/A |
| Media |
Visual |
| HTML Syntax |
{ clip: sClip } |
| Scripting |
object.style.clip [ = sClip ] |
CSS Scripting
onMouseOver="this.style.clip='rect(auto)';" *¸ðµç clipÀ» Á¦°ÅÇÒ ¶§´Â auto ÇÑ ¹ø¸¸ ÁöÁ¤ÇÑ´Ù.
clip PropertyÀÇ »ç¿ë°ª
- auto
Ãʱ⠰ªÀ¸·Î¼ clipÀÌ µÇ¾î¼ °¡·ÁÁö´Â ºÎºÐÀÌ ¾øÀÌ ¸ù¶¥ º¸¿©ÁÖ°í, 4¸éÀ» ¸ðµÎ auto·Î ÁöÁ¤ÇÒ ¶§´Â auto ÇÑ ¹ø¸¸ ÁöÁ¤ÇØ ÁÖ¸é µË´Ï´Ù.
- shape
rect(top right bottom left) ·Î ÁöÁ¤ÇÕ´Ï´Ù. rect´Â rectangularÀÇ ¾àÀÚ·Î 4°¢ÇüÀ̶ó´Â ¶æ ÀÔ´Ï´Ù. ±×·±µ¥ ¿©±â¼ ÁöÁ¤ÇÏ´Â °ªÀÌ ¾à°£ Çò°¥¸®¹Ç·Î ÁÖÀÇÇØ¾ß µË´Ï´Ù.
top : ÁöÁ¤ÇÑ ±æÀ̸¸Å À§¿¡¼ ¾Æ·¡·Î °¡·Á¼ ¾È º¸ÀÔ´Ï´Ù.
right : ÁöÁ¤ÇÑ ±æÀ̸¸Å ¿ÞÂÊ¿¡¼ ¿À¸¥ÂÊÀ¸·Î º¸¿© ÁÝ´Ï´Ù.
bottom : ÁöÁ¤ÇÑ ±æÀ̸¸Å À§¿¡¼ ¾Æ·¡·Î º¸¿© ÁÝ´Ï´Ù.
left : ÁöÁ¤ÇÑ ±æÀÌ ¸¸Å ¿ÞÂÊ¿¡¼ ¿À¸¥ÂÊÀ¸·Î °¡·Á ÁÝ´Ï´Ù.
- ¾Æ·¡´Â top, right, bottom, left¸¦ °¢°¢ 15px ¾¿ clip Çß½À´Ï´Ù. Mouse¸¦ ±×¸² À§¿¡ ¿Ã¸®¸é ¼³¸í±ÛÀÌ ³ª¿À´Ï±î Âü°í ÇϽÃÁ®.
Auto
Top
Right
Bottom
Left
¼Ò½º º¸±â
ÀÔ·Â
<HTML>
<HEAD>
<TITLE></TITLE>
<STYLE type="text/css">
<!--
.box{
position:absolute;
border:1px solid royalblue;
font:11px verdana;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV style="position:relative;">
<DIV class="box" STYLE="left:50;clip:rect(auto)">
<IMG src="../images/AA17.jpg" alt="clip:rect(auto)">
<br><center>Top</center>
</DIV>
<DIV class="box" STYLE="left:150;clip:rect(15px auto auto auto)">
<IMG src="../images/AA17.jpg" alt="clip:rect(15px auto auto auto)">
<br><center>Top</center>
</DIV>
<DIV class="box" STYLE="left:250;clip:rect(auto 15px auto auto)">
<IMG src="../images/AA17.jpg" alt="clip:rect(auto 15px auto auto)">
<br><center>Right</center>
</DIV>
<DIV class="box" STYLE="left:350;clip:rect(auto auto 15px auto)">
<IMG src="../images/AA17.jpg" alt="clip:rect(auto auto 15px auto)">
<br><center>Bottom</center>
</DIV>
<DIV class="box" STYLE="left:450;clip:rect(auto auto auto 15px)">
<IMG src="../images/AA17.jpg" alt="clip:rect(auto auto auto 15px)">
<br><center>Left</center>
</DIV>
</DIV>
</BODY>
</HTML>
ÀÌ ¹®¼ÀÇ ÀúÀÛ±ÇÀº www.cadvance.org ¿¡ ÀÖ½À´Ï´Ù.
|