请老师过目,不足请指正
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | <!DOCTYPE html> < html > < head > < meta charset = "UTF-8" > < title >IMOOC</ title > < link rel = "stylesheet" type = "text/css" href = "main.css" > < style > section.main { width: 1200px; margin: 20px auto 0; } .main > aside { width: 450px; float: left; } .main > article { width: 730px; float: right; } .main h1 { font-size: 30px; font-weight: lighter; margin-bottom: 30px; } .main h1 > samp { color: #7c7c7c; font-size: 30px; } .main > aside > dl { position: relative; display: block; margin-bottom: 17px; height: 74px; } .main > aside > dl > dt { position: absolute; top: -1px; left: 95px; font-size: 16px; font-weight: bold; line-height: 16px; text-decoration: underline; } .main > aside > dl > dd:first-of-type { position: absolute; left: 0px; } .main > aside > dl > dd:nth-of-type(2) { position: absolute; left: 18px; top: 8px; color: white; font-size: 30px; } .main > aside > dl > dd:last-of-type { position: absolute; left: 95px; top: 20px; margin: 0; } .main > article > p, .main > article > image { margin-bottom: 30px; } </ style > </ head > < body > < section class = "main" > < aside > < h1 >Recent < samp >Course</ samp ></ h1 > < dl > < dt >HTML</ dt > < dd >< img src = "http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png" ></ dd > < dd >1</ dd > < dd >This is HTML description</ dd > </ dl > < dl > < dt >CSS</ dt > < dd >< img src = "http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png" ></ dd > < dd >2</ dd > < dd >This is CSS description</ dd > </ dl > < dl > < dt >JS</ dt > < dd >< img src = "http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png" ></ dd > < dd >3</ dd > < dd >This is JS description</ dd > </ dl > < dl > < dt >Angular JS</ dt > < dd >< img src = "http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png" ></ dd > < dd >4</ dd > < dd >This is Angular JS description</ dd > </ dl > </ aside > < article > < h1 >Welcome to < samp >Massive Open Online Course!</ samp ></ h1 > < p >This is Paragraph 1</ p > < img src = "http://img1.sycdn.imooc.com/climg//582e61180001ede703300130.jpg" > < p >This is the third Paragraph</ p > < p >The last paragraph is full of useless words and insignificant words just used to fill the line to strech this p to multiple lins which can obtain a better display</ p > </ article > </ section > </ body > </ html > |
0
收起
正在回答 回答被采纳积分+1
2回答
HTML5与CSS3实现动态网页 2018
- 参与学习 1887 人
- 提交作业 4643 份
- 解答问题 5760 个
有HTML和CSS基础,却不知道如何进阶?本路径带你通过系统学习,完成从“会做网页”到“做出好的动态网页”的蜕变,迈出成为前端工程师的第一步。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧