<del>
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨2015ë 7ìâ©.
HTML <del> ììë 문ììì ì ê±°ë í
ì¤í¸ì ë²ì를 ëíë
ëë¤. 문ìë ìì¤ ì½ëì ë³ê²½ì ì¶ì ë±ì ì¬ì©í ì ììµëë¤. <ins> ìì를 ì¶ê°ë í
ì¤í¸ì ë²ì를 ëíë¼ ì ììµëë¤.
ìëí´ ë³´ê¸°
<blockquote>
There is <del>nothing</del> <ins>no code</ins> either good or bad, but
<del>thinking</del> <ins>running it</ins> makes it so.
</blockquote>
del {
text-decoration: line-through;
background-color: #fbb;
color: #555;
}
ins {
text-decoration: none;
background-color: #d4fcbc;
}
blockquote {
padding-left: 15px;
border-left: 3px solid #d7d7db;
font-size: 1rem;
}
| ì½í ì¸ ì¹´í ê³ ë¦¬ | íë¡ì° ì½í ì¸ , 구문 ì½í ì¸ . |
|---|---|
| ê°ë¥í ì½í ì¸ | í¬ëª . |
| íê·¸ ìëµ | ë¶ê°ë¥, ììê³¼ ëì í그를 ì¶ê°íë ê²ì íìì ëë¤. |
| ê°ë¥í ë¶ëª¨ ìì | 구문 ì½í ì¸ ë¥¼ íì©íë 모ë ìì. |
| ê°ë¥í ARIA ìí | 모ë |
| DOM ì¸í°íì´ì¤ | HTMLModElement |
í¹ì±
ì´ ììë ì ì í¹ì±ì í¬í¨í©ëë¤.
cite-
íìë¡, ì´ì ì¶ì ìì¤í ì í°ì¼ ë²í¸ ë± ë³ê²½ì ì ì¤ëª íë 리ìì¤ì URI.
datetime-
ë³ê²½ì´ ë°ìí ì¼ì. ì í¨í ë ì§ ë¬¸ìì´ì´ì´ì¼ íë©°, ìê°ì ì§ì í ê²½ì° ìì ì í¨í´ì¼ í©ëë¤. ì í¨íì§ ìì ê°ì ì§ì í ê²½ì° ì¼ì를 ì§ì íì§ ìì ê²ê³¼ ê°ìµëë¤. ì í¨í 문ìì´ì ì¢ ë¥ë HTMLìì ì¬ì©íë ë ì§ì ìê° íì 문ììì íì¸í ì ììµëë¤.
ìì
<p><del>This text has been deleted</del>, here is the rest of the paragraph.</p>
<del><p>This paragraph has been deleted.</p></del>
ê²°ê³¼
ì ê·¼ì± ê³ ë ¤ì¬í
ëë¶ë¶ì ì¤í¬ë¦° 리ëë 기본ê°ìì <del> ììì ì¡´ì¬ë¥¼ íííì§ ììµëë¤. ê·¸ë¬ë CSS content ìì±ê³¼ ::before, ::after ìì¬ ìì를 ì¬ì©íë©´ ì리ë´ì´ ì½ëë¡ í ì ììµëë¤.
del::before,
del::after {
clip-path: inset(100%);
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
del::before {
content: " [ì ê±° ë¶ë¶ ìì] ";
}
del::after {
content: " [ì ê±° ë¶ë¶ ë] ";
}
ì¤í¬ë¦° 리ë ì¬ì©ì ì¼ë¶ë ì§ëì¹ê² ìì¸í ìë´ë¥¼ ì ë°í ì ìë ì½í ì¸ ì ííì ìëì ì¼ë¡ 꺼ëìµëë¤. ê·¸ë¬ë¯ë¡ ì´ ë°©ìì ë¨ì©í´ì ìëë©°, ì½í ì¸ ì ì´í´ì ìì ì¬ë¶ê° ê¼ íìí ëë§ ì¬ì©í´ì¼ í©ëë¤.
ëª ì¸
| Specification |
|---|
| HTML > # the-del-element > |