CSS Daim Qauv rau Txoj Cai ntawm Koj Cov Blog

css

Ib tug phooj ywg ntawm kuv tau nug kuv yuav ua li cas kuv tsim cov cai cheeb tsam ntawm kuv kev nkag blog kawg. Kuv yeej 'faked' qhov chaws thaj siv cov style. Hauv Blogger, koj tuaj yeem hloov kho koj tus qauv. Kuv ntxiv rau hauv qab no style:

p.code {font-tsev neeg: Courier Tshiab; font-loj: 8pt; ciam teb-style: inset; ciam teb-qhov dav: 3px; padding: 5px; xim tom qab: #FFFFFF; kab-qhov siab: 100%; cov npoo: 10px}

Cov kauj ruam tom ntej yog los kho kuv tus tag hauv qhov 'Kho kom raug Html'. Kuv tsuas taw tes rau kuv cov qauv tshiab los ntawm ua daim pib. Voila! Rhuav tshem tawm cov yeej:

  • Teem cov tsiaj ntawv rau Courier Tshiab… zoo li kev hloov kho cov qauv code
  • Teem lub font loj rau 8pt kom pom zoo
  • Teem cov kab lus ciam teb style rau 'inset'. Qhov no replicates dab tsi textarea zoo li ntawm nplooj ntawv.
  • Teem lub ciam teb dav rau 2 lossis 3 pixels. Qhov no ua rau cov kab inset ciam teb zoo li yog.
  • Padding teev qhov kev ncua deb ntawm tus ciam teb thiab cov ntawv hauv.
  • Tom qab xim… muab tso rau kom dawb (#FFFFFF)
  • Kab-qhov siab - Kuv kho qhov no kom 100% vim qee qhov ntawm lwm qhov hauv kuv lub ntsiab lus blogger ua rau kuv cov kab qhov siab txog 200%
  • Teem lub npoo rau 10 px. Qhov no txav cov pawg lus (p tag) 10 pixels ntawm txhua yam.

Uas yog txhua yam muaj yog nws! Ib qho kev ceeb toom: Tus editor uas los nrog Blogger tsis muaj peev xwm los nthuav tawm qhov uas nws yuav tshwm sim hauv koj qhov blog. Tab sis nws ua haujlwm thiab zoo nkaus li zoo!

Ib qho cim ntxiv… tom qab koj hloov kho rau daim ntawv cim npe, lub Blogger editor nyiam sau cia siv lwm qhov hla koj txoj kev tshaj tawm. Nws yog ib tug me ntsis annoying! Kuv cov lus qhia yuav yog los sau koj cov ncej tag nrho thiab tom qab ntawd ua ib qho hloov me me tom qab.

Daim ntawv kawg… nco ntsoov siv HTML Cov Khoom los tso saib koj cov cim! Ob peb tus piv txwv:

  • Cov lus hais (“) yog“
  • > yog>
  • > yog>

Zoo siab Coding!

3 Comments

  1. 1
  2. 2
  3. 3

    Kuv tshaj plaws tsis muaj qhov xav tau sau tam sim no tshaj. koj tuaj yeem siv cov editors.you tuaj yeem xaiv xim, ciam teb thiab lwm yam.

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.