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
167
168 169
170 171
172 173
174 175
176 177
178 179
180
181 182 183 184 185 186 187 188
189
190 191 192
1 body{ 2 margin: 0 auto; 3 border:1px solid gainsboro; 4 width: auto; 5 } 6 7 a:link{ 8 text-decoration: none; 9 color: black; 10 font-size: 14px;/*为什么都是14px 表格里的比其他地方的字体小???*/ 11 }/*未放鼠标*//*要设置字体颜色去相应的地方设定 (在全局设为什么不管用???)*/ 12 13 a:hover{ 14 text-decoration: underline; 15 color: black; 16 }/*鼠标放在上面*/ 17 /* a:link { text-decoration: none;color: blue} 18 a:active { text-decoration:blink} 19 a:hover { text-decoration:underline;color: red} 20 a:visited { text-decoration: none;color: green} 21 其中: 22 a:link 指正常的未被访问过的链接; 23 a:active 指正在点的链接; 24 a:hover 指鼠标在链接上; 25 a:visited 指已经访问过的链接; 26 text-decoration是文字修饰效果的意思; 27 none参数表示超链接文字不显示下划线; 28 underline参数表示超链接的文字有下划线*/ 29 30 ul{ 31 list-style-type: none; 32 } 33 34 .line1{ 35 height: 115px; 36 background-color:#eeeff1; 37 border: solid 2px #dedede; 38 } 39 40 .line1 div{ 41 float: left; 42 height: 115px; 43 } 44 45 .topsearch{ 46 width: 553px; 47 } 48 49 .topsearch input{ 50 margin: 30px 50px 0px 150px; 51 } 52 53 .topsearch ul li{ 54 float: left; 55 border-right: solid 2px #999999; 56 } 57 58 .topbutton ul{ 59 margin: 30px; 60 } 61 62 .topbutton a{ 63 color: #999999; 64 text-align: center; 65 } 66 67 .button{ 68 height: 45px; 69 width: 180px; 70 background-color: #ff4466; 71 border: none; 72 color: white; 73 } 74 75 .line234{ 76 background-color: #eeeff1; 77 height: 1090px; 78 padding: 26px 67px 55px 77px; 79 } 80 81 .special{ 82 background-color: white; 83 width: 223px; 84 height: 500px; 85 float: left; 86 margin: 0 21px 0 0; 87 /*border: solid 1px #dedede;*//*为什么加border格子就乱了?????*/ 88 } 89 90 .special span img{ 91 width: 223px; 92 } 93 94 .sixul{ 95 padding: 0 15px; 96 } 97 98 .sixul li{ 99 margin: 10px 0 0 0;100 float: left;101 }/*ul内边距为零 li外边距为0 可有效去除ul自带的左边距*/102 103 .sixul li img {104 width: 96px;105 height: 44px;106 margin-bottom:5px;107 }108 109 .sixul li a{110 text-align: end;/*?为什么不居中*/111 color: black;112 }113 114 115 .threepictures{116 padding: 0 15px 0 15px;117 position: relative;118 float: left;119 }120 121 .threepictures li{122 float: left;123 }124 125 #righttop{126 position: absolute;127 left: 146px;128 top: 0;129 }130 131 .person{132 background-color: white;133 width: 465px;134 height: 500px;135 float: left;136 }137 138 .person span img{139 width: 465px;140 }141 142 .person table{143 margin-left: 30px;144 align-items: center;/*为什么不管用*/145 border: 1px red;/*为什么不管用????*/146 width:436px;147 height:396px;148 }149 150 .person table a{151 color: black;152 }153 154 .convenient{155 background-color: chartreuse;156 width: 223px;157 height: 260px;158 float: left;159 margin: 24px 21px 0 0;160 }161 162 .convenient img{163 width: 223px;164 height: 260px;165 }166 167 .tool{168 background-color: black;169 width: 954px;170 height: 260px;171 float: left;172 margin: 24px 0 0 0;173 }174 175 .wechat{176 background-color: green;177 width: 470px;178 height: 260px;179 float: left;180 margin: 24px 0 0 0;181 }182 183 .wechat img{184 width: 470px;185 height: 260px;186 }187 188 .line5{189 background-color:#eeeff1;190 height: 235px;191 border: solid 2px #dedede;192 /*padding:85px 0 0 0;*/193 }194 195 .botoom{196 height: 150px;197 width: 1350px;198 float: left;199 margin-top: 86px;200 }201 /*?202 给子元素盒子一个垂直外边距margin-top,父元素盒子也会往下走margin-top的值,遇到此问题203 1、修改父元素的高度,增加padding-top样式模拟(padding-top:1px;常用)204 2、为父元素添加overflow:hidden;样式即可(完美)205 3、为父元素或者子元素声明浮动(float:left;可用)206 4、为父元素添加border(border:1px solid transparent可用)207 5、为父元素或者子元素声明绝对定位208 */209 210 .botoom img{211 height: 150px;212 width: 1350px;213 }
这是我第一次使用div+css编程模式写html静态网页。由于时间原因没有做完整,但收获很大,包括掌握的技术和发现的疑问。
掌握的技术总结为两点:1.初步掌握用浮动技术、盒子模型进行网页布局。2.初步掌握父子选择器等选择器的使用。
发现了许多疑问,还未被解答:大多数都标注在备注中,下周有机会尽快解决。
欢迎大家帮助解决疑问、提建议、交流。
