老师帮我看一下,谢谢!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | <!DOCTYPE html> < html > < head > < meta charset = "UTF-8" > < title >display属性</ title > < style type = "text/css" > /*样式补充*/ body,div,h3,ul,li{padding:0x;margin: 0x;} .big{ width: 120px; margin: 0px auto; /*padding: 20px;*/ border: 1px #e5e5e5 solid; background-color: #eeeeee; } .div2,.div1{ margin: 0px auto; border-bottom: 1px #e5e5e5 solid; padding-bottom: 0px; } /*.div2{ margin: 0px auto;*/ /* border-bottom: */ /* 1px #e5e5e5 solid;padding-bottom: 0px;}*/ .div3{ margin: 0px auto; border-bottom: none;padding-bottom: 0px;} h3{font-style: "宋体";text-align: center; font-size: 16px; padding: 0px;line-height: 30px; margin: 0px;} /*ul{display: none;}*/ ul{list-style-type: none; background-color: white; height: 100%; font-size: 14px; margin: 0px;} li{text-indent: 5px;color: ;} .elec,.wash,.clothes{display: none;line-height: 2em; margin-bottom: 0px;} .div1:hover .elec{display: block;} .div2:hover .wash{display: block;} .div3:hover .clothes{display: block;} </ style > </ head > < body > < div class = "big" > < div class = "div1" > < h3 href = "#" ;>家电</ h3 > < ul class = "elec" > < li >冰箱</ li > < li >洗衣机</ li > < li >空调</ li > </ ul > </ div > < div class = "div2" > < h3 href = "#" ;>洗护</ h3 > < ul class = "wash" > < li >洗衣液</ li > < li >消毒液</ li > < li >柔顺剂</ li > </ ul > </ div > < div class = "div3" > < h3 href = "#" ;>衣物</ h3 > < ul class = "clothes" > < li >衬衫</ li > < li >裤子</ li > < li >卫衣</ li > </ ul > </ div > </ div > </ body > </ html > |
0
收起
正在回答 回答被采纳积分+1
2回答
慕九州4495990
2019-05-22 18:24:50
好的,谢谢!
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧