3-34 代码检查
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 | <!DOCTYPE html> < html > < head > < title ></ title > < style type = "text/css" > div{ width: 200px; height:150px; background-color: #eee; margin-top: 5px; } section{ width: 200px; height: 30px; margin-bottom: 5px; background-color: #ff0; } div:empty{ background-color:#f00; } section:empty{ background-color:#abcdef; } </ style > </ head > < body > < div > < section >one</ section > < section >two</ section > </ div > < div ></ div > < div > < section >three</ section > < section >four</ section > < section >five</ section > < section ></ section > </ div > </ body > </ html > |
老师, 麻烦检查下代码是否有误
7
收起
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧