å
¨å±å±æ§ class ç弿¯ä¸ä¸ªä»¥ç©ºæ ¼åéçå
ç´ çç±»åï¼classesï¼å表ï¼å®å
许 CSS å Javascript éè¿ç±»éæ©å¨ (class selectors) æ DOM æ¹æ³ ( document.getElementsByClassName
) æ¥éæ©å访é®ç¹å®çå
ç´ ã
<p>Narrator: This is the beginning of the play.</p>
<p class="note editorial">Above point sounds a bit obvious. Remove/rewrite?</p>
<p>Narrator: I must warn you now folks that this beginning is very exciting.</p>
<p class="note">[Lights go up and wind blows; Caspian enters stage right]</p>
.note {
font-style: italic;
font-weight: bold;
}
.editorial {
background: rgb(255, 0, 0, 0.25);
padding: 10px;
}
.editorial:before {
content: "Editor: ";
}
尽管对 class çå½å没æè¦æ±ï¼ä½ web å¼åè æå¥½ä½¿ç¨å¯ä»¥è¡¨è¾¾å ç´ è¯ä¹ç®ççåç§°ï¼è䏿¯æè¿°å ç´ å±ç°çåç§°ï¼å³ä½¿ä¸ä¸ªå ç´ æ¯æä½ï¼ä½æ¯ class çå½åä¹ä¸åºè¯¥æ¯ italicsï¼ãè¯ä¹åå½åå³ä½¿å¨é¡µé¢å±ç°åçæ¹åæ¶ä»è½åä¹é»è¾ã
è§è æµè§å¨å ¼å®¹æ§ åè§RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4