2-11编程问题
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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | <html> <head> <meta charset= "UTF-8" > <title> 2 -11 </title> <style type= "text/css" > /*此处写代码*/ *{ margin : 0 ; padding : 0 ; } .zt{ width : 100% ; height : 100% ; } .title{ width : 100% ; height : 100px ; background-color : #000 ; position : fixed ; z-index : 10 ; } .logo{ top : 0 ; left : 0 ; } .foot{ height : 100px ; height : 20px ; position : absolute ; top : 50% ; margin-top : -12px ; right : 40px ; } .foot a{ font-size : 24px ; color : #fff ; text-decoration : none ; margin-left : 40px ; } .text{ width : 100% ; height : 1000px ; background-color : #97cbff ; position : absolute ; top : 100px ; } .text_ 1 { float : left ; width : 25% ; height : 1000px ; margin : 50px 5% 0% 10% ; } .text_ 2 { widows : 16px ;%; height : 1000px ; float : left ; margin : 50px 5% 0% 0% ; } .text_ 2 span{ margin-right : 10px ; } .text_ 1 ,.text_ 2 { font-size : 16px ; line-height : 40px ; } .text_ 1 span{ background-color : #ff7575 ; margin-right : 20px ; } .text_ 3 { float : left ; height : 1000px ; width : 30% ; border-left : 5px solid orange; } .text_ 3 form{ margin : 50px 0 0 20% ; } .text_ 3 p{ font-size : 20px ; } .text_ 3 input{ width : 250px ; height : 40px ; } .tj{ background-color : red ; } . bottom { width : 100% ; height : 100px ; bottom : 0 ; position : fixed ; background-color : black ; z-index : 10 ; } .bottom_ 1 { height : 100px ; width : auto ; text-align : center ; word-spacing : 50px ; line-height : 100px ; } .bottom_ 1 a{ text-decoration : none ; color : #fff ; font-size : 24px ; } </style> </head> <body> <!-- 此处写代码 --> <div class= "zt" > <div class= "title" > <div class= "logo" > <img src= "http://img1.sycdn.imooc.com/climg//59093e9c00016ce303000100.png" > </div> <div class= "foot" > <a href= "#" >课程</a> <a href= "#" >职业路径</a> <a href= "#" >实战</a> <a href= "#" >猿问</a> <a href= "#" >手记</a> </div> </div> <div class= "text" > <div class= "text_1" > <h 3 >课程推荐</h 3 > <p><span>职业路径</span>HTML 5 与CSS实现动态网页</p> <p><span>职业路径</span>零基础入门Android语法与界面</p> <p><span>职业路径</span>IOS基础语法与常用控件</p> <p><span>职业路径</span>PHP入门开发</p> <p><span>职业路径</span>JAVA入门开发</p> </div> <div class= "text_2" > <h 3 >相关课程</h 3 > <p><span>HTML</spam><span>CSS</span><span>JavaScript</span></p> <p><span>HTML 5 </span><span>CSS 3 </span><span>Jquery</span></p> <p><span>移动端基础</span><span>移动端APP开发</span></p> </div> <div class= "text_3" > <form> <p>登录</p><br/> <input type= "text" name= "zh" placeholder= "请输入登录帐号/手机号" /> <br/> <br/> <input type= "password" name= "mm" placeholder= "6-16为密码 区分大小写 不能用空格" maxlength= "16" /> <br/> <br/> <input type= "submit" name= "tj" value= "登录" class= "tj" /> </form> </div> </div> <div class= "bottom" > <div class= "bottom_1" > <a href= "#" >网站首页</a> <a href= "#" >企业合作</a> <a href= "#" >人才招聘</a> <a href= "#" >联系我们</a> <a href= "#" >常见问题</a> <a href= "#" >友情链接</a> </div> </div> </div> </body> </html> |
有没有可以简化的代码
还有什么需要改进的地方么,请老师指点一下,谢谢!
11
收起
正在回答
2回答
你好,1、如下:这里多了一个%,另:widows是要设置什么?检查下代码哦。
2、建议:右侧的提交按钮可以添加下border: none属性哦。
3、如下,单词拼写错误,应该是span
祝学习愉快~
相似问题
登录后可查看更多问答,登录/注册
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧