大学生HTML期末作业网页:使用DIV+CSS技术制作一个简单的小说网站 (3个页面 登录+注册+首页 )
body,img,input,ul,li,h3,p,dl,dd ,dt{margin:0px;border:0px;padding:0px; font-family:"微软雅黑";list-style-type:none;}
a{text-decoration:none;}
/*广告样式*/
#topOne{width:100%; height:20px; background:url(../images/) ; text-align:center;
cursor:pointer;/*相对定位*/}
/*Top样式*/
#Top{width:1000px; height:70px; margin:0px auto;/*水平距中*/ padding-top:-50px;}
#Top .logo{width:215px; height:70px; float:left;/*左浮动*/}
#Top .search{width:370px; height:70px;float:left; position:relative;}
#Top .user{width:400px; height:70px; float:right;/*右浮动*/font-size:24px; color:red;
text-align:right;/*水平距右*/}
#Top .user {font-family:"微软雅黑" !important; font-size:20px; color:#ed145b;
padding:0px 10px;background-color:paleturquoise}
#Top .user font{padding-right:20px;}
#Top .user font a{text-decoration:none; color:#666;}
#Top .user font a:hover{color:#ed145b;}
#Top .user {color:#ed145b; text-decoration:none; padding:0px 5px;}
#Top .search {width:310px; height:38px;overflow:hidden; border:1px solid #ddd; outline:none;}
#Top .search {width:42px;height:40px; border:0px;background:url("../images/ser_but.png");
position:absolute; left:312px; top:0px;}
/*导航样式*/
#Logo{width:100%;height:50px; background:#000;top:-50px; }
#Logo ul{width:1200px; height:50px;margin:0px auto;/*水平居中*/position:relative; }
#Logo ul li{ height:50px;list-style-type:none; float:left;
color:#fff; font-size:14px; text-align:center; line-height:50px;
}
#Logo ul li a{color:#fff; display:block;padding:0px 30px; position:relative;z-index:3;}
#Logo ul {width:190px; background:#f42760;}
#Logo ul span{font-family:"微软雅黑" !important; color:#fff; font-size:20px; padding-right:10px;}
#Logo ul {width:100px; height:50px; background:green; position:absolute;
left:190px;z-index:2; display:none;}
/*头部焦点部分样式*/
#Foucs{width:100%; height:420px; }
#Foucs .FoucsCommon{width:1200px; height:420px; margin:0px auto;}
#Foucs .FoucsCommon .Menu{width:190px; height:420px; background:#000; float:left;}
#Foucs .FoucsCommon .Flash{width:820px; height:420px;float:left;}
#Foucs .FoucsCommon .News{width:190px; height:420px; float:left;}
/*菜单样式*/
#Foucs .FoucsCommon .Menu ul li{ height:69px; border-bottom:1px dotted #403f3f; color:#fff; position:relative;}
#Foucs .FoucsCommon .Menu ul li h3{font-size:14px; font-weight:100; line-height:40px;
text-indent:20px;}
#Foucs .FoucsCommon .Menu ul li p{font-size:12px;}
#Foucs .FoucsCommon .Menu ul li p a{color:#fff;padding-left:20px;}
#Foucs .FoucsCommon .Menu ul li p a:hover{color:#f42760;}
/*二级菜单*/
.Menu ul{position:relative;}
.Menu ul li .moreNav{width:850px; position:absolute;
left:189px; /*top bottom*/ box-shadow:0 0 10px #000;display:none;
background:#fff;}
.Menu ul li .border_top{height:1px; background:#ddd;width:190px; position:absolute;left:0px; top:-1px; display:none;}
.Menu ul li .border_bottom{height:1px; background:#ddd;width:190px; position:absolute;left:0px; bottom:-1px;display:none;}
.Menu ul li .border_right{height:69px; background:#000;width:1px; position:absolute;right:0px; bottom:0px;display:none;}
.Menu ul .moreNav{display:block;}
.Menu ul .border_top{display:block;}
.Menu ul .border_bottom{display:block;}
.Menu ul .border_right{display:block;}
/*头部焦点 Flash 动画特效*/
#Foucs{width:100%; height:419px; overflow:hidden;}
#Foucs .FoucsCommon{width:1200px;height:419px; margin:0px auto;}
#Foucs .FoucsCommon .flash{width:820px; height:419px; background-image:url(../images/);float:left;
position:relative;}
#Foucs .FoucsCommon .flash a{width:71px;height:71px;display:block;display:none;
position:absolute; top:180px;z-index:333;}
#Foucs .FoucsCommon .flash {left:-35px; background:url("../images/") -71px 0px;}
#Foucs .FoucsCommon .flash {right:-35px; background:url("../images/") -71px -71px;}
#Foucs .FoucsCommon .flash :hover{background-position:0px 0px;}
#Foucs .FoucsCommon .flash :hover{background-position:0px -71px;}
#Foucs .FoucsCommon .flash .scroll{width:820px;height:419px;position:relative; overflow:hidden;}
#Foucs .FoucsCommon .flash .scroll img{position:absolute;left:820px;}
#Foucs .FoucsCommon .flash .But{width:150px;height:20px; background:rgba(0,0,0,0.5); position:absolute;
left:340px; bottom:10px; border-radius:20px; text-align:center;}
#Foucs .FoucsCommon .flash .But span{width:10px;height:10px; display:inline-block; border-radius:5px;
background:#666;}
#Foucs .FoucsCommon .flash .But {background:#ff0099;}
#Foucs .FoucsCommon .news{width:190px; height:419px; float:right;position:relative;}
#Foucs .FoucsCommon .news .newsback{width:190px;height:419px;
background:#000000; }
#Foucs .FoucsCommon .news .newsCommon{position:absolute;width:190px;height:419px; top:0px; left:0px;
color:#fff;}
#Foucs .FoucsCommon .news .newsCommon h3{height:43px; background:#00A1D2; font-size:14px; color:#fff;
line-height:43px; text-indent:20px; font-family:"微软雅黑"; font-weight:100;}
#Foucs .FoucsCommon .news .newsCommon ul li{font-size:12px; color:#fff;font-family:"微软雅黑";line-height:30px; }
#Foucs .FoucsCommon .news .newsCommon ul{padding:10px 10px 15px 10px;}
#Foucs .FoucsCommon .news .newsCommon ul li a{color:#fff;}
#Foucs .FoucsCommon .news .newsCommon ul li a:hover{font-size: 15px;}
#Foucs .FoucsCommon .news .newsCommon ul li a font{color:red;}
#Foucs .FoucsCommon .news .newsCommon ul li {color:red;}
#Foucs .FoucsCommon .news .Datatx ul li{background:#000000; margin-bottom:5px;text-indent:3px;}
/*小说分类*/
.fenlei{width:1200px;height:535px; margin:0px auto;}
.fenlei {line-height:40px; font-size:16px; }
.fenlei .Part{border:1px solid #ddd; height:500px;}
.fenlei .PartL{width:320px;height:500px;position:relative; float:left;}
.fenlei .PartM{width:175px; height:500px;float:left;border-left:1px solid #ddd; border-right:1px solid #ddd;}
.fenlei .PartR{width:680px; height:500px; float:right;}
.fenlei .PartL {font-size:16px; color:#666; width:280px; margin:0px auto; line-height:30px;
text-align:center;}
.fenlei .PartL {display:block; position:absolute; left:10px; top:210px;}
.fenlei .PartL {display:block; position:absolute; right:10px; top:210px;}
.fenlei .PartL .imgList{width:280px;height:480px; margin:10px auto; overflow:hidden; position:relative;}
.fenlei .PartL ul{width:2000px; position:absolute;}
.fenlei .PartL ul li{width:280px;height:480px; list-style-type:none; float:left;}
.fenlei .PartL ul li h3{font-size:16px; color:#666; line-height:35px; font-weight:100;
font-family:"微软雅黑"; text-align:center;}
.fenlei .PartL ul li span{font-size:14px; color:#000; border:1px solid #ddd; border-radius:3px;display:block; margin:30px auto; width:110px;height:40px;
line-height:40px;text-align:center;font-family:"微软雅黑"; }
.fenlei .PartL ul li span font{color:#ff3366;}
.fenlei .PartM ul li{line-height:45px; border-bottom:1px solid #ddd; color:#666;
font-size:14px; text-align:Center; position:relative;background:#efefef}
.fenlei .PartM ul {background:#efefef; color:#ff4a01;}
.fenlei .PartM p{font-size:16px; color:#666; padding:0px 20px;}
.fenlei .PartM {width:110px;height:35px; border:1px solid #ddd; border-radius:2px;
text-align:center; line-height:35px; display:block;margin:20px auto;font-size:14px;
color:#fd0033;}
.fenlei .active ul {width:100px; height:50px; background:palegreen; position:absolute;
left:190px;z-index:2; display:none;}
.fenlei ul span:hover{
font-size: 18px;
cursor: pointer;
color:red;
}
.fenlei .PartM .faceul_zero img{ width: 150px; height: 148px; padding:10px;}
.hoverstyle_zero{border:3px solid palevioletred;width:160px;height:168px;}
.fenlei .PartR ul li{width:200px; margin:10px; float:left;position:relative;}
.fenlei .PartR ul li p{font-size:14px; color:#666; padding:0px 10px; line-height:25px;}
.fenlei .PartR .infoBox img{ width: 175px; height: 175px;}
.hoverstyle_one{border:3px solid paleturquoise;width:0px;height:0px;}
.book{width: 710px; clear: left; margin-bottom: 10px;
float: left;}
.book h1{height: 40px; font-size: 16px;
clear: both; line-height: 50px;
overflow: hidden;
border-bottom: 2px #000000 solid;
margin-bottom: 10px;
}
.book ul{width: 100%;
overflow: hidden;
border-top: 1px #cccccc solid;
border-right: 1px #cccccc solid;
}
.book ul li{float: left;width: 235px; height: 220px; overflow: hidden; text-align: center;
border-left: 1px #cccccc solid;
border-bottom: 1px #cccccc solid;}
.book ul li img{width: 80%;}
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px "宋体";background:#fff;-webkit-text-size-adjust:100%;}
a{color:#2d374b;text-decoration:none}
/* searchTxt */
.searchBtn button,.searchTxt .searchMenu .searchSelected{
background-image:url(../images/);
background-repeat:no-repeat;}
.searchTxt{
float:left;
width:399px;
height:30px;
border:2px solid #d3d3d3;
border-right:0;
position:relative;
z-index:20;
background:#fff;}
.searchTxt .radius{
width:1px;
height:1px;
overflow:hidden;
background:#f4f4f4;
position:absolute;
top:-2px;left:-2px;}
.searchTxtHover{
float:left;
width:399px;
height:30px;
border:2px solid #3297d8;
border-right:0;
position:relative;
z-index:20;
background:#fff;}
.searchTxtHover .radius{
width:1px;
height:1px;
overflow:hidden;
background:#cce5f5;
position:absolute;
top:-2px;left:-2px;}
.searchTxt .searchMenu{float:left;}
.searchTxt .searchMenu .searchSelected{
color:#a8a8a8;
cursor:pointer;
font-size:14px;
font-weight:bold;
height:30px;
line-height:30px;
padding:0 10px;
width:48px;
background-position:0px -54px;}
.searchTxt .searchMenu .searchOpen{
background-position:0px -104px;}
.searchTxt .searchMenu .searchTab{
display:none;
position:absolute;
top:30px;left:-2px;
width:58px;
border:2px solid #3297d8;
border-top:0;
background:#fff;
height:258px;
z-index:20;}
.searchTxt .searchMenu .searchTab li{
width:58px;
height:28px;
line-height:28px;
color:#a8a8a8;
font-size:14px;
font-weight:bold;
text-indent:10px;
cursor:pointer;}
.searchTxt .searchMenu .searchTab {background:#edf3fc;color:#6994c1;}
.searchTxt input{
float:left;
border:0;
background:#fff;
color:#333;
font:16px/22px '宋体',
sans-serif;
width:237px;
height:22px;
margin:0;
outline:medium none;
padding:4px;}
.searchBtn{float:left;}
.searchBtn button{
background-position:0px 0px;
border:0;color:#fff;
cursor:pointer;
float:left;
font-size:16px;
height:38px;
text-indent:-9999px;
width:86px;}
.Footer .footer_nav{
font-size:12px;
text-align:center;
color:#ddd;
margin-top: 30px;}
.Footer p{
text-align:center;
font-size:12px}
.Footer p a{
color:#00A1D2}
.Footer span{
color:#00A1D2;
}
.Footer img{
border:1px solid #ddd;
margin:0 10px}
.Tab_tit{
font-size:12px;
line-height:24px;
color:#ddd;
margin-bottom:10px;
}