《web课程设计》使用HTML+CSS制作大学生校园二手交易网站

时间:2025-03-30 09:12:03
@charset "utf-8"; /* CSS Document */ body{ margin:0 auto; font-size:12px; font-family: "宋体",arial; line-height:22px; background:#d0d3d5; } div,p,input,ul,li,p,h1,h2,h3,h4,h5,h6,dl,dt,dd{ height:auto; margin:0;; padding:0; vertical-align:middle ;} li{ list-style:none;} a{ text-decoration:none;} .ul{ list-style:none;} .divclear{ clear:both;} img{ border:0; margin:0; padding:0;} a{color:#333;} a:link{ color:#333;} a:hover {color:#0c95cf;text-decoration:none;overflow:hidden;} /*---top开始-----*/ .top{ height:200px; width:1000px; margin:0 auto; } .ban{ height: 335px; width: 1000px; margin: 0 auto;} .banner{ width:1000px; height:335px; margin:0 auto; } /*---top结束-----*/ .main{ width: 1000px; margin: 0 auto; padding-top: 10px; background: #fff; padding-bottom: 50px; height: auto; overflow: hidden;} /*---导航----*/ .daohang{ width: 1000px; height: 47px; background: url(../images/); margin: 0 auto;} #nav{ width:1000px; height:47px; line-height:47px; font-family:"宋体"; font-weight:bolder; font-size:14px; margin:0 auto; } #nav ul{ margin:0 auto; } #nav li{float: left; width: 165px; text-align: center; color: #FFF; } #nav a{width:165px;height:47px; display:block; font-family:"宋体"; font-size:14px; font-weight:bold; float:left;} #nav a:link { color:#FFF; } #nav a:visited{ color:#FFF; text-decoration:none; overflow:hidden; } #nav a:hover { color: #FFF; text-decoration:none; overflow:hidden; background:#0a6e9b; } #nav a:active { color: #FFF; text-decoration:none; overflow:hidden; background:#0a6e9b; } .box1{ width:1000px; height:311px; margin:0 auto;} .shang-left{float:left;} .gk-title{ width:308px; height:40px; background:#0c95cf; } .gk-title h1{ height: 40px; line-height: 40px; width: 130px; margin-left: 20px; font-size: 16px; color: #FFF; font-family: "黑体"; } .gk{ width:296px; height:262px; border-left:#8c8c8c 1px solid; border-right:#8c8c8c 1px solid; border-bottom:#8c8c8c 1px solid; background:#FFF; padding:0px 5px;padding-top: 10px; } .gk span{ color:#F00;} .gk img{ margin-right:10px; float:left;} .xz{ width:347px; height:311px; margin:0px 15px;border:#8c8c8c 1px solid; background:#FFF; float:left; overflow:hidden;} .xz ul{} .xz ul li{ width:327px; height:30px; line-height:30px; margin:0px 10px; border-bottom:#CCC 1px dashed;} .xz ul li p{ width:80%; height:30px; float: left;} .xz ul li span{ float:right; width:20%;} .tit{ width:349px;} .shang-right{float:left;} .count-title{ width:308px; height:40px; background: #0c95cf; } .count-title h1{ height: 40px; line-height: 40px; width: 130px; margin-left: 20px; font-size: 16px; color: #FFF; font-family: "黑体"; } .count{ width:286px; height:272px; border-left:#8c8c8c 1px solid; border-right:#8c8c8c 1px solid; border-bottom:#8c8c8c 1px solid; background:#FFF; padding:0px 10px;} .count img{ margin:10px 0px 10px 20px;} .count p{ line-height: 20px; font-size: 12px;} .count span{ width: 60px; height: 30px; line-height: 30px; font-size: 14px; float: left;} .denglu{width: 240px; height: 30px; padding-top: 20px; margin: 0 auto;} .xit { width: 150px; height: 25px; border: #CCC 1px solid; padding-left: 20px; color: #c7c8c8; float: left; } .dengbt { color: #fff; background: #00aaef; width: 200px; text-align: center; height: 40px; margin:0 auto; border: 0px; display:block; } .yy-title{ width:1000px; height: 40px; background: #0c95cf;} .yy-title h1{ height: 40px; line-height: 40px; width: 130px; margin-left: 20px; font-size: 16px; color: #FFF; font-family: "黑体"; } .yy{ width: 978px; padding:10px; height: 190px; border-left: #6c6b6b 1px solid; border-right: #6c6b6b 1px solid; border-bottom: #6c6b6b 1px solid; background: #FFF; } .meishi{ margin-top:15px !important; margin-bottom:15px; } .ms{ width: 978px; padding:10px; height:220px; border-left: #6c6b6b 1px solid; border-right: #6c6b6b 1px solid; border-bottom: #6c6b6b 1px solid; background: #FFF; } .ms ul{} .ms ul li{ width:185px; height:180px; margin:5px; float:left;} .ms ul li img{ width:185px; } .ms ul li p{ text-align:center; font-size:14px;} .righttitle{width: 935px; background:url(../images/er_02.png) no-repeat; height:68px; line-height:68px; padding-left:65px; color:#0784bc; font-size:18px; font-weight:bold;} .righttitle span{ font-size:14px; color:#0784bc; font-family:"arial"; font-weight:normal;} .neirong{ padding:0px 15px 15px 15px; min-height: 550px;} .neirong p{margin:10px 0px; text-indent:2em;} .neirong img{ margin:0 auto;display: block;} .ncontu { padding-bottom:0px; line-height:22px; padding-left:7px; width:100%; padding-right:0px; float:left; color:#464646;height: 680px; } .ncontu ul { } .ncontu ul li { width: 250px; display: block; float: left; height: 260px; overflow: hidden; margin-bottom: 15px; text-align: center; } .ncontu ul li a { border-bottom: #907f6f 1px solid; border-left: #907f6f 1px solid; padding-bottom: 4px; padding-left: 4px; width:230px; padding-right: 4px; display: block; background: #ffffff; float: left; height: 188px; border-top: #907f6f 1px solid; border-right: #907f6f 1px solid; padding-top: 4px } .ncontu ul li a:hover { border-bottom: #cc0000 1px solid; border-left: #cc0000 1px solid; border-top: #cc0000 1px solid; border-right: #cc0000 1px solid } .ncontu ul li a.pro3 { border-bottom: #907f6f 0px solid; text-aLIGN: center; border-left: #907f6f 0px solid; line-height: 20px; width: 211px; display: block; background: none transparent scroll repeat 0% 0%; float: left; height: 20px; color: #464646; border-top: #907f6f 0px solid; border-right: #907f6f 0px solid; text-decoration:none } .ncontu ul li a.pro3:hover { border-bottom: #907f6f 0px solid; border-left: #907f6f 0px solid; color: #ff9900; border-top: #907f6f 0px solid; border-right: #907f6f 0px solid } .huiy{ width:100%; height:650px;} .form .item-fore1 { z-index: 6; } .form .item-fore1, .form .item-fore2 { border: 1px solid #bdbdbd; height: 38px; width: 304px; } .form .item { position: relative; margin-bottom: 20px; z-index: 1; } .form .item-fore2 { height: 38px; } .form .item-fore1, .form .item-fore2 { border: 1px solid #bdbdbd; height: 38px; width: 304px; } .form .item .pwd-label { background: url(../images/) no-repeat !important; } .form .item .login-label { position: absolute; z-index: 3; top: 0; left: 0; width: 38px; height: 38px; border-right: 1px solid #bdbdbd; background:url(../images/) no-repeat; } .form label { float: none; } .form input[type="password"] { font-family: Tahoma, Helvetica, Arial; } .form .itxt { line-height: 18px; height: 18px; border: 0; padding: 10px 0 10px 50px; width: 254px; float: none; overflow: hidden; font-size: 14px; font-family: '\5b8b\4f53'; *margin: -1px 0 0; } .form .item-fore1 .clear-btn, .form .item-fore2 .clear-btn { position: absolute; z-index: 20; right: 6px; top: 12px; width: 14px; height: 14px; background: url(../images/) -25px -143px no-repeat; cursor: pointer; display: none; } .form .item-fore3 { z-index: 5; margin-bottom: 13px; height: 30px; width: 306px; } .form .item-vcode .itxt02, .form .item-vcode .verify-code { float: left; } .form .itxt02 { padding: 7px 5px; width: 150px; text-align: center; border: 1px solid #bbb; } .form .item-vcode a { display: inline-block; width: 38px; float: right; } .form .item-fore4 { *float: left; *margin-top: 15px; height: 15px; } .safe { position: relative; color: #666; *float: left; *width: 305px; } .form .item-fore5 { margin-bottom: 10px; } .login-btn { margin: 0 auto; height: 35px; width: 99%; position: relative; } .login-btn .btn-img { border: none; display: block; width: 303px; background: #7bc4ef; height: 35px; line-height: 31px; color: #fff; font-size: 20px; font-family: 'Microsoft YaHei'; } .mc{float: left; width: 360px; margin-left: 100px;padding-top: 100px;} .form .verify-code { cursor: pointer; width: 90px; height: 33px; vertical-align: middle; } .safe { position: relative; color: #666; *float: left; *width: 305px; } .safe .forget-pw-safe2 { position: absolute; *float: right; *position: static; left: 0; top: 0; margin: 0; } .reg-other { float: left; margin-left: 60px; height: 605px; padding-left: 60px; border-left: solid 1px #e6e6e6;padding-top: 100px; } .reg-other .phone-fast-reg { background: url(../images/) no-repeat; width: 300px; height: 355px; } .yanz{ padding-left:10px !important;} .news{ width: 96%; margin-left: 2%;height: 670px;} .news ul li{ line-height: 30px;height: 30px;color: #3d2915;border-bottom: #333 1px dashed;} .news ul li a{float: left;display: block;line-height: 30px;height: 30px;color: #3d2915; } .news ul li a:hover{ color:#000;} .news ul li span{ float:right; color:#666; line-height:30px;} /* ------------会员登录结束-------------- */ /*---bottom结束-----*/ .bottom{ width: 1000px; margin: 0 auto;margin-top: 20px;} .bottom img{float:left;} .bottom p{ width:100%; height:30px; font-size:14px; text-align:center; font-weight:bold; margin-left:20px; float:left;} /*---bottom结束-----*/