Hogyan hozzunk létre egy blokk hover hatással listáját linkek
Ez a bemutató ismerteti, hogy hozzon létre egy blokkot hover hatása a listáját, linkek formájában használ tiszta CSS tervezés csak li, span és em címkéket.
Lépés: 1. Alapvető HTML felépítése
> <div id = "linkBox"> <ul> > Link Heading One <li> <a href = "#"> Link címsor One <em> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut viverra dui nec risus. Az EU a neque tortor lacinia rhoncus. </ Em> <span> 20. június 2009 </ span> </ a> </ li> > Link Heading Two <li> <a href = "#"> Link címsor Two <em> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut viverra dui nec risus. Az EU a neque tortor lacinia rhoncus. </ Em> <span> 21. június 2009 </ span> </ a> </ li> > Link Heading Three <li> <a href = "#"> Link címsor Three <em> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut viverra dui nec risus. Az EU a neque tortor lacinia rhoncus. </ Em> <span> 22. június 2009 </ span> </ a> </ li> </ ul> </ div>
Lépés: 1 CSS kód
# linkBox ul ( ; list-style-type: none; ; szélesség: 400 képpont; ) # linkBox li ( 0 ; margin: 5px 0; #ccc ; Border-bottom: 1px dotted # ccc; #ccc ; Border-top: 1px dotted # ccc; ) # linkBox li a ( ; color: # E67701; ; display: block; 100 . 1 % "Georgia" , Times New Roman, Times, serif ; font: bold 100. 1%-os "Grúzia" Times New Roman, Times, serif; ; padding: 5px; ; text-decoration: none; %; Line-height: 182. 5%; ) /* make hover effect work in IE */ * Html # linkBox li a (/ * make hover effect munkát IE * / ; szélesség: 400 képpont; ) { # linkBox li a: hover ( ; background: # eeeeee; ) # linkBox egy em ( ; color: # 333; ; display: block; 82 . 5 % "Georgia" , Times New Roman, Times, serif ; font: normál 82. 5%-os "Grúzia" Times New Roman, Times, serif; . 5 %; line-height: 182. 5%; ) # linkBox a span ( ; color: # 006AFF; 82 . 5 % "Georgia" , Times New Roman, Times, serif ; font: normál 82. 5%-os "Grúzia" Times New Roman, Times, serif; % ; line-height: 150%; )
A példa
Végül mi történt. létrehoztunk egy blokk hover hatással listáját linkek. View my például and roll a termékek listáját, hogy a blokk hover hatású intézkedés.
Kapcsolódó cikkek:
Ha élvezte olvasatban ezt a cikket, kérlek nézd meg a többi kapcsolódó cikkek a következők:



















































Submit a Comment