<blockquote>ï¼å级å¼ç¨å ç´
åºçº¿
广æ³å¯ç¨
èª 2015å¹´7æ èµ·ï¼æ¤ç¹æ§å·²å¨ä¸»æµæµè§å¨ä¸å¾å°æ¯æï¼å¯å¨å¤§å¤æ°è®¾å¤åæµè§å¨çæ¬ä¸æ£å¸¸ä½¿ç¨ã
HTML <blockquote> å
ç´ ï¼æè
HTML å级å¼ç¨å
ç´ ï¼ï¼ä»£è¡¨å
¶ä¸çæåæ¯å¼ç¨å
容ãé叏卿¸²ææ¶ï¼è¿é¨åçå
容伿ä¸å®ç缩è¿ï¼æ³¨ ä¸è¯´æäºå¦ä½æ´æ¹ï¼ãè¥å¼ææ¥æºäºç½ç»ï¼åå¯ä»¥å°åå
容çåºå¤ URL å°åè®¾ç½®å° cite ç¹æ§ä¸ï¼è¥è¦ä»¥ææ¬çå½¢å¼åç¥è¯»è
弿çåºå¤æ¶ï¼å¯ä»¥éè¿ <cite> å
ç´ ã
å°è¯ä¸ä¸
<div>
<blockquote cite="https://www.huxley.net/bnw/four.html">
<p>
Words can be like X-rays, if you use them properlyâtheyâll go through
anything. You read and youâre pierced.
</p>
</blockquote>
<p>âAldous Huxley, <cite>Brave New World</cite></p>
</div>
div:has(> blockquote) {
background-color: #ededed;
margin: 10px auto;
padding: 15px;
border-radius: 5px;
}
blockquote p::before {
content: "\201C";
}
blockquote p::after {
content: "\201D";
}
blockquote + p {
text-align: right;
}
| Content categories | Flow content, sectioning root, palpable content. |
|---|---|
| Permitted content | Flow content. |
| æ ç¾çç¥ | ä¸å 许ï¼å¼å§æ ç¾åç»ææ ç¾é½ä¸è½çç¥ã |
| Permitted parents | Any element that accepts flow content. |
| Permitted ARIA roles | Any |
| DOM interface | HTMLQuoteElement |
屿§
æ¤å ç´ ç屿§å å« å ¨å±å±æ§ã
cite-
æ¯ä¸ä¸ªæ 注å¼ç¨çä¿¡æ¯çæ¥æºææ¡£æè ç¸å ³ä¿¡æ¯ç URLãéå¸¸ç¨æ¥æè¿°è½å¤è§£é弿çä¸ä¸ææè å¼ç¨çä¿¡æ¯ã
使ç¨è¯´æ
è¥è¦ä¿®æ¹è¢«å¼ç¨å
容ç缩è¿è·ç¦»ï¼å¯ä»¥ä½¿ç¨ CSS margin-left å/æ margin-right 屿§ï¼æä½¿ç¨ margin 缩å屿§ã
è¥æ³ä½¿ç¨å¨è¡å
å¼ç¨è¾ççå
容èéå建ä¸ä¸ªåç¬çå¼ç¨åï¼å¯ä½¿ç¨ <q>ï¼Quotationï¼å
ç´ ã
妿æ³è¦ä½¿ç¨çå¼ç¨ï¼è¡é´å¼ç¨ï¼ï¼å¯ä»¥ä½¿ç¨<q> æ ç¾ã
示ä¾
ä¸é¢çè¿ä¸ªä¾åæ¼ç¤ºäºä½¿ç¨ <blockquote> å
ç´ å¼ç¨ä¸æ®µæ¥èª RFC 1149 çå
容ï¼ä»¥ç¦½ç±»ä½ä¸ºè½½ä½ç IP æ°æ®å
ä¼ è¾æ åã
<blockquote cite="https://tools.ietf.org/html/rfc1149">
<p>
Avian carriers can provide high delay, low throughput, and low altitude
service. The connection topology is limited to a single point-to-point path
for each carrier, used with standard carriers, but many carriers can be used
without significant interference with each other, outside of early spring.
This is because of the 3D ether space available to the carriers, in contrast
to the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
avoidance system, which increases availability.
</p>
</blockquote>
ä¸é¢ç HTML 代ç å°ä¼çæï¼
è§è
| è§è |
|---|
| HTML > # the-blockquote-element > |