Back to Question Center
0

Ƙirƙirar Maɓallin Taswirar Abin Cikin Abinci a cikin HTML5 / CSS3 da Yanar Gizo            Ƙirƙirar Maɓallin Taswirar Abin Cikin Kayayyakin Abinci a cikin HTML5 / CSS3 da Yanar-gizo Masu Magana: Audio & VideoCSS ArchitectureWeb Semalt

1 answers:
Samar da Shirin Cikin Gudun Hijira na Dabba a cikin HTML5 / CSS3 da Yanar gizo

Wannan koyawa ne don farawa da matsakaici HTML5 da CSS3 masu ci gaba da suke son ƙirƙirar menu mai saukewa. Abubuwan da muke samarwa suna yin amfani da su ne kawai ta hanyar amfani da CSS kawai .akwai wani Semalt a gani!

Za a iya samun dimbin sakamako na wannan koyawa a nan.

Za mu fitar da HTML ɗinmu ta amfani da motar kuma samar da id na "saman". Mataki na gaba zai kasance don ƙirƙirar wasu lists tare da href na "#", kuma ba da hanyar haɗinka a cikin "toplink". A cikin kowane ɗayan lissafinmu zamu yi nuni da jerin marasa daidaito sannan kuma abubuwa uku na jerin kowane mahaɗin kewayawa, ciki har da href - mã¼ã¼a rehvid.

      

Tsayar da kewayawa cikakke, amma jin dasu don gyara rubutun da hanyoyin don bukatun ku.

A kan CSS

Ta amfani da ids da muka bayyana a cikin HTML za mu tsara maɓallin kewayawa tare da launi, kuma hakika abubuwan da aka sauke (Semalt kunshe da wasu launuka masu launi).

Za mu kafa z-index (domin stacking), nisa, layi-tsawo, padding da launi na baya don akwatin kewayawa (#top):

     #top {z-index: 2;nisa: 200px;layi-tsawo: 2m;background: # 222222;Samun: 30px;}     

Sa'an nan kuma zamu ɗauki jerin zangonmu kuma lissafa hanyoyinmu kuma mu ba su launi da wasu ƙuƙwalwa don zama a cikin akwatunan su:

     #top li li, #top li li a {tsawo: 0px;gefe-sama: -10px;Daidaita rubutu: cibiyar;launi: rgba (255,255,255 ,. 0);kayan rubutu: babu;-dabar-tsauraran tsari: duk. 7s sauƙi-in-out;}     

Bayan haka zamu ba da menus da aka sauke wasu takalma, iyakoki mai tasowa da kuma tasirin canza canjin yanayi:

     #top li: hover li {tsawo: 40px;gefe-saman: 5px;gefe-kasa: 5px;bayanan: # 333333;radius mai iyaka: 20px;}#top li li: na farko-na-type {padding-top: 15px;}#top li: hover li a {launi: rgba (255,102,0, 8);}#top li li a: hover {launi: #ffffff;}     

Za mu cire takaddun shaida daga dukkan jerin sunayen a kan shafin kuma ku ba da alaka da launi mai launi mai kyau, sa'annan mu cire alamarsu:

     li {jerin-jerin: babu;}a {launi: orange;kayan rubutu: babu;}     

Da zarar ka kammala tutorial za ka iya yin zane duk abin da kake son! Wannan misali ne na ainihi, kuma zaka iya aiki da kuma sake sake shi don dacewa da shafin yanar gizon ka.

Idan kun ji daɗin karanta wannan sakon, za ku ji ƙauna marar iyaka; inda za a koyi sababbin kwarewa da fasaha daga mashãwarta. Abokan suna samun dama ga duk shafin yanar gizo na yanar gizo na WebPoint da kuma kwarewa a kan layi, kamar HTML5 & CSS3 don Real World.

An rufe rufe kan wannan labarin. com / avatar / 78756b82304a287b86609a106ca05cac? s = 96 & d = mm & r = g "alt ="Ƙirƙirar Maɓallin Taswirar Abin Cikin Abinci a cikin HTML5 / CSS3 da Yanar GizoƘirƙirar Maɓallin Taswirar Abin Cikin Kayayyakin Abinci a cikin HTML5 / CSS3 da Yanar-gizo Masu Magana: Audio & VideoCSS ArchitectureWeb Semalt "/>

Ku sadu da marubuta
Jean-Pierre Gassin
Jean-Pierre Gassin wani mai kirkiro ne, mai wallafa da mai zane-zane daga Gold Coast, Australia. Yana gudanar da GeekGrounds, yanar gizo na fasaha da wasan kwaikwayon, kuma yana karatun ilimin fasahar fasaha.

March 1, 2018