2-9习题 我不知道怎么对内容的居中
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 | < style type = "text/css" > *{margin:0;padding:0;} body{margin:0;padding:0;} .top{width:100%;height:100px; background:black;position:fixed;} .top-left{float:left; text-height:100px;} .top-right{width:100%; height:100px; color:white; } .top-right ul{list-style-type:none;font-size:24px;font-weight:bold; float:right; } .top-right li{display:inline;line-height:100px;} .content{width:100%; height:600px; background:#09F;float:left;padding-top:100px; } .content-left{width:40%;height:auto;background:#09F;margin:auto;float:left;padding-left:10%; margin-top:50px;} .content-right{width:40%;height:auto;float:left;padding-left:10%;margin-top:50px;} .content ul{list-style-type:none; float:left; } .contnt li{display:inline;} span{background:#F99;} .bottom{width:100%;height:100px; background:black;position:fixed; bottom:0;color:white; text-align:center;} .bottom ul{list-style-type:none;font-size:24px;font-weight:bold; } .bottom li{display:inline;line-height:100px;} </ style > </ head > < body > <!--页面头部--> < div class = "top" > < div class = "top-left" >< img src = "http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png" /></ div > < div class = "top-right" > < ul > < li >课程 </ li > < li >提问 </ li > < li >职业路径 </ li > < li >实战 </ li > < li >手记 </ li > </ ul > </ div > </ div > <!--页面内容--> < div class = "content" > <!--页面内容左--> < div class = "content-left" > < h2 >课程推荐</ h2 > < ul > < li >< span >职业路径</ span > html5与css3实现动态网页</ li > < li >< span >职业路径</ span > 0基础入门android语法和界面</ li > < li >< span >职业路径</ span > ios基础语法与常用控件</ li > < li >< span >职业路径</ span > php入门开发</ li > < li >< span >职业路径</ span > Java入门开发</ li > </ ul > </ div > <!--页面内容右--> < div class = "content-right" > < h2 >相关课程</ h2 > < ul > < li >html css javascript</ li > < li >html5 css3 jquery</ li > < li >移动端基础 移动端app开发</ li > </ ul > </ div ></ div > <!--页面尾部--> < div class = "bottom" > < ul > < li >网站首页</ li > < li >企业合作</ li > < li >友情链接</ li > < li >人才招聘</ li > < li >意见反馈</ li > </ ul ></ div > </ body > </html |
16
收起
正在回答 回答被采纳积分+1
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧