请老师指导下,感觉有些代码理得不是很清楚,谢谢
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 | <!DOCTYPE html> < html > < head > < meta charset = "UTF-8" > < title ></ title > < style type = "text/css" > /*此处写代码*/ *{margin:0;padding:0;font-family:"微软雅黑";color:#fff;} .logo{background:url(http://img1.sycdn.imooc.com/climg//58c0d2d900016ce303000100.png) no-repeat;width:360px; height:100px;} .nav{padding-top:-100px;background:black;height:100px;width:100%;position: fixed;top:0;left: 0;} ul{float:right;width:800px;position:absolute;top:0;right:0;line-height:100px;} ul li{float:left;list-style:none;font-size:26px;padding:0 46px;} .pic1 img{width:100%;display: block;} .foot{height:100px;background:black;font-size:26px;width: 100%;text-align: center;position: fixed;bottom: 0;left: 0;} .foot a{text-decoration:none;height: 100px;width: 700px;padding:0 46px;line-height: 100px;} </ style > </ head > < body > <!-- 此处写代码 --> < div class = "nav" > < div class = "logo" ></ div > < ul > < li >课程</ li > < li >职业路径</ li > < li >实战</ li > < li >猿问</ li > < li >手记</ li > </ ul > </ div > < div class = "pic1" > < img src = "http://img1.sycdn.imooc.com/climg//58c0eda50001e12416000480.jpg" alt = "" > < img src = "http://img1.sycdn.imooc.com/climg//58c0edb80001c9f216000480.jpg" alt = "" > < img src = "http://img1.sycdn.imooc.com/climg//58c0edc9000100d516000480.jpg" alt = "" > </ div > < div class = "foot" > < a href = "#" >网站首页</ a > < a href = "#" >企业合作</ a > < a href = "#" >人才招聘</ a > < a href = "#" >联系我们</ a > < a href = "#" >常见问题</ a > < a href = "#" >友情链接</ a > </ div > </ body > </ html > |
21
收起
正在回答 回答被采纳积分+1
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧