Back to Question Center
0

Lambobin Samalt HTML ta amfani da CSS

1 answers:

Ina ƙoƙarin sake tsara jerin a cikin HTML wadda ke da sharudda da ƙananan kalmomin kamar haka:

     1. Babban Magana(a) Sashe na asali(b) Sub clause
2. Wani babban mabuɗin(a) Sashe na asali    

Matsalar da nake gudana a ciki shine:

  1. Idan na yi amfani da abubuwan HTML na yanzu (ol da li) a can ba ze zama jerin jerin ba (a) - Zan iya samun. b. c. ko A. B - tsp2. C. amma ba (a) (b) (c).

  2. Idan ban yi amfani da abubuwan HTML na yanzu ba kuma fara amfani da alamomin span, to, idan wata kalma ta wuce bayan ƙarshen layin ya bayyana a ƙarƙashin ɓangaren sashi, maimakon zama indented.

Kamar haka:

     (a) Magana mai tsawo
wanda ke kan layin daya    

lokacin da abin da nake so shi ne halayyar daga jerin sunayen, wanda shine:

     (a) Magana mai tsawowanda ke kan layin daya    

Shin akwai wata hanyar da za ta warware wadannan matsaloli biyu a lokaci guda? Na fi so in yi amfani da HTML da CSS masu siffanta don salo, amma da ciwon sassan da aka tsaida daidai yana da muhimmanci fiye da yin abubuwa 'hanya madaidaiciya'.

Ina iya buƙatar masu biyan kuɗi a wani matsayi (i. e. (i), (ii) da sauransu. ), don haka ba zan iya ɗauka cewa (a) zai zama iyakar matsayi mai zurfi ba.

February 13, 2018

Matsalarka na biyu za a iya warwarewa tare da CSS ta amfani da matsayi-style-style: a waje;

  ul, ol
{matsayi-style-style: a waje;
} 

Sakamako:

  1. rubutu mai tsawo da kumakunna kewaye 

Matsala ta farko ba za a iya warwarewa tare da CSS ko HTML ba yayin da babu wani jami'in (a), (b), da sauransu don zaɓin umarnin. To, idan kun dole ya kasance kamar haka za ku sami samfurin kuma ku gwada abubuwa kamar amfani da

da kuma ƙarfafa abubuwa masu tasowa.

Zaka iya samar da abun ciki ta yin amfani da kafin sannan kuma hada shi tare da counter-reset da counter-increment don samar da jerin umarnin da aka tsara. Sa'an nan kuma ta amfani da padding akan abubuwan da aka samar, za ka iya cimma nasarar da kake so kawai tare da CSS.

A nan ne zancen yadda za a yi aiki a kan CSS: http: // www. w3. org / TR / CSS2 / samar. html # propdef-counter-increment

Kuma ga hujja ce: http: // jsfiddle. net / p3U9j /

Lambobin Samalt HTML ta amfani da CSS
Reply