Pehea e hoʻohana ai i ka blockquote? HTML blockquote tag demo hopena

IWordPressMa ka hoʻoponopono ʻatikala, aia kahi pihi "block quote"▼

Pehea e hoʻohana ai i ka blockquote? HTML blockquote tag demo hopena

Ke hoʻohana ʻia, hoʻohui ia i kahiMarker e kāhea i kekahi ʻōlelo i ʻōlelo ʻia a i ʻole ka mea koʻikoʻi.

He aha ka manaʻo o ka blockquote?

Eia malalo iho neiChen WeiliangKaila kuhi no nā blog:

He mea pono loa ka tag blockquote XHTML (inā hoʻohana ʻole ʻia kekahi).Ma ke ʻano maʻamau, pono e hoʻohana ʻia ka blockquote i kēlā me kēia manawa e ʻōlelo ana ʻoe i nā kikokikona lōʻihi mai kahi kumu ʻē aʻe (kekahi mea haʻiʻōlelo, kahi pūnaewele ʻē aʻe, etc.).He ala kēia e hoʻokaʻawale i ka kikokikona a hōʻike pū me nā kumu ʻē aʻe.
Naʻauao-style, hiki iā ʻoe ke hana i kēia me nā papa kūikawā ma nā hōʻailona paukū ... Loaʻa iā Blockquotes kekahi mau ʻano ma ka paʻamau.
Hoʻokomo ka hapa nui o nā mākaʻikaʻi i nā kikokikona i nā huaʻōlelo blockquote, e kōkua i nā mea hoʻohana e ʻike i ka kikokikona ma kekahi ʻano.Akā ʻo wai ka mea e ʻōlelo pono mākou e kū ma laila?Eia pehea e hana ai i kāu mau blockquotes me CSS.

E ho'āʻo i ka test-css.html a hoʻohui i ka ʻāpana css i ke kino html:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test CSS blockquote</title>
</head>
<blockquote>
  <p>The blockquote XHTML tag is a fairly useful (if somewhat underused) element. Semantically speaking, a blockquote should be used any time you’re quoting a longer piece of text from another source – another speaker, another website, whatever. It’s a way of setting the text apart, and showing that it came from some other source. Stylistically, you could accomplish all this with a special class on your paragraph tags… but that wouldn’t be as semantically useful, now, would it?<br>
  Blockquotes do have some styling by default. Most browsers will indent the text in a blockquote tag, which helps the user recognize that the text is different somehow. But who's to say that we need to stop there? Here are six different ways you could style your blockquotes using CSS.</p>
</blockquote>
</body>
</html>

Pehea e hoʻohana ai i ka blockquote?

ʻIke ʻia ʻaʻole hoʻohui kekahi mau kumumanaʻo WordPress i nā ʻano kuhikuhi i ka faila style.css.

E kope a paʻi i ke ʻano poʻomanaʻo poʻomanaʻo polū i loko o ka faila style.css o ke kumuhana▼

blockquote, q {
    font: bold 21px/1.5 Consolas,"Courier New","KaiTi","KaiTi_GB2312","FangSong_GB2312",SimHei,arial,Monaco,monospace;
    color: #000;
    margin: 1em;
    margin-left: 2em;
    margin-right: 2em;
    padding: 3px;
    max-width: 95%;
    quotes: "\201C""\201D""\2018""\2019";
    background: #C3F3F7;
    border-radius: 20px;
}

Hoʻoholo nā ʻano kuhikuhi i ke kikokikona o ke kino (ka nui, ka waihoʻoluʻu), ka waihoʻoluʻu hope, ke keʻokeʻo, nā palena, a pēlā aku...

kaila palena

He mea maʻalahi kēiaʻano,ʻo ia hoʻi, hoʻonohonoho i ka palena hema a hoʻonohonoho i ka mānoanoa.Mālama ke kala i ka waihoʻoluʻu font, a ʻo ka waihoʻoluʻu kāʻei e hoʻomalu i ka waihoʻoluʻu hope (a i ʻole ka hui kāʻei pololei).

Mālama ka ʻaoʻao i ka mamao i ka mea puka makani, ʻo ka ʻaoʻao hema o ka palena e hoʻomalu i ke ʻano palena hema, a ʻo ka pale (ʻoi aku ka ʻaoʻao hema o ka pale hema) e hoʻomalu i ka mamao mai ke kikokikona a i ka palena (hema).

He maʻalahi kēia ʻano e like me ka blog maʻalahi.

E kope a paʻi i ke ʻano melemele ma lalo nei i loko o ka faila style.css o ke kumuhana▼

blockquote {
margin: 1em 3em;
padding: .5em 1em;
border-left: 5px solid #fce27c;
background-color: #f6ebc1; }
blockquote p {
margin: 0; }
  • He 2 mau ʻano blockquote ka mea i luna.
  • ʻO ka hoʻohui ʻana i nā ʻano like like ʻole e kākau ʻia.
  • No laila, e koho i kekahi o ia mau mea a hoʻohui i ka faila style.css o ke kumuhana.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) haʻi "Pehea e hoʻohana ai i ka blockquote? HTML i ka blockquote tag demo hopena, e kōkua iā ʻoe.

Welina mai e kaʻana like i ka loulou o kēia ʻatikala:https://www.chenweiliang.com/cwl-2123.html

Welina mai i ke kahawai Telegram o ka moʻomanaʻo ʻo Chen Weiliang e kiʻi i nā mea hou loa!

🔔 E lilo i mea mua e kiʻi i ka waiwai nui "ChatGPT Content Marketing AI Tool Usage Guide" ma ka papa kuhikuhi kiʻekiʻe. 🌟
📚 He waiwai nui kēia alakaʻi, 🌟He manawa kakaikahi kēia, mai poina! ⏰⌛💨
Kaʻana like a like inā makemake ʻoe!
ʻO kāu kaʻana like a me kou makemake ʻo kā mākou hoʻoikaika mau!

 

评论

ʻAʻole e paʻi ʻia kāu leka uila. Hoʻohana ʻia nā kahua koi * Label

ʻōwili i luna