Me pehea te whakamahi i te blockquote? HTML blockquote tūtohu tohu pānga

WordPressI roto i te whakatika tuhinga, he paatene "poraka" noa▼

Me pehea te whakamahi i te blockquote? HTML blockquote tūtohu tohu pānga

Ina whakamahia, ka taapirihia heTohu ki te tono i etahi korero kua whakahuahia, tohu tohu ranei.

He aha te tikanga o te blockquote?

Ko te mea e whai ake neiKo Chen WeiliangTe momo korero mo nga rangitaki:

Ko te tohu blockquote XHTML he huānga tino whai hua (mehemea he iti te whakamahi).Ko te tikanga, me whakamahi te blockquote i nga wa katoa e whakahua ana koe i nga tuhinga roa mai i tetahi atu puna (tetahi kaikorero, tetahi atu paetukutuku, me etahi atu).He huarahi tenei hei whakawhāiti i te kuputuhi me te whakaatu me etahi atu puna.
Ma te ahua o te ahua, ka taea e koe enei mea katoa me nga karaehe motuhake mo nga tohu tohu ... engari he koretake tena, inaianei, ka pena? Ko nga kupu poraka he momo ahua taunoa.
Ko te nuinga o nga kaitirotiro e whakauru ana i nga tuhinga ki nga tohu poraka, e awhina ana i nga kaiwhakamahi ki te tautuhi i te kuputuhi i etahi ara.Engari ko wai te kii me mutu taatau ki reira?Anei me pehea te hanga i o korero poraka ki te CSS.

Whakamatauhia te test-css.html me te taapiri i te waahanga css ki te tinana 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>

Me pehea te whakamahi i te blockquote?

Ka kitea ko etahi kaupapa WordPress kaore i te taapiri i nga momo tohutoro ki te konae style.css.

Tāruatia ka whakapiri i te kāhua kokonga porotaka papamuri kahurangi e whai ake nei ki te kōnae style.css o te kaupapa▼

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;
}

Ko nga momo tohutoro e whakatau ana i te tuhinga tinana (rahi, tae), tae papamuri, mokowāma, taitapa, aha atu...

kāhua taitapa

He ahua ngawari tenei ahua, ara, tautuhi i te taitapa maui me te whakatakoto i te matotoru.Ma te tae e whakahaere te tae momotuhi, me te tae papamuri e whakahaere te tae papamuri (he roopu papamuri tika ranei).

Ko te tawhē e whakahaere ana i te tawhiti ki te huānga matapihi, ko te taha maui o te taitapa e whakahaere ana i te ahua o te taitapa maui, a ko te papa (ina koa ko te taha maui o te papaa maui) ka whakahaere i te tawhiti mai i te kuputuhi ki te taitapa (maui).

He maamaa noa tenei ahua penei i te blog ngawari.

Tāruatia ka whakapiri i te kāhua papamuri kōwhai e whai ake nei ki te kōnae style.css o te kaupapa▼

blockquote {
margin: 1em 3em;
padding: .5em 1em;
border-left: 5px solid #fce27c;
background-color: #f6ebc1; }
blockquote p {
margin: 0; }
  • Ko nga mea o runga ake nei e 2 nga momo kupu poraka.
  • Ko te taapiri i nga momo momo rite ka tuhiruatia.
  • Na, whiriwhiria tetahi o enei ka taapiri atu ki te konae style.css o te kaupapa.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Me pehea te whakamahi blockquote? HTML i roto i te tohu tohu tohu poraka, hei awhina i a koe.

Nau mai ki te tohatoha i te hono o tenei tuhinga:https://www.chenweiliang.com/cwl-2123.html

Nau mai ki te hongere Telegram o te blog a Chen Weiliang ki te tiki i nga korero hou!

🔔 Ko koe te tuatahi ki te tiki i te "ChatGPT Content Marketing AI Tool Usage Guide" i roto i te raarangi o runga hongere! 🌟
📚 He uara nui tenei aratohu, 🌟He waahi onge tenei, kaua e ngaro! ⏰⌛💨
Tohaina me te pai ki te pai koe!
Ko to tiritiri me o hiahia ko to maatau hihiri tonu!

 

发表 评论

Kaore e tukuna to wahitau imeera. 必填 项 已 用 * Tapanga

panuku ki runga