*{
margin:0px;
padding:0px;
}
body {
font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, “\5B8B\4F53”, sans-serif;
color: #999;
}
a {
text-decoration: none;
color: #999;
}
li {
list-style: none;
}
.header{
height:170px;
background-color: antiquewhite;
}
.top{
height:30px;
background-color: #ccc;
}
.top .juzhong{
width:990px;
height:30px;
margin: 0px auto;
}
.top .juzhong .left{
float:left;
width:58px;
height:30px;
}
.top .juzhong .left i{
font-size:14px;
color:red;
}
.top .juzhong .left span{
line-height: 30px;
}
.top .juzhong .right{
float:right;
width: 693px;
height: 30px;
}
.top .juzhong .right ul li{
float:left;
line-height: 30px;
margin-right: 5px;
}
.right ul li a:hover{
color:red;
}
.top .juzhong .right .shu {
width: 1px;
height: 10px;
margin-top: 11px;
background-color: #999;
}
/* --------------------------------------------------------- /
.bottom {
height:140px;
/ background-color: rgb(96, 240, 185); */
}
.jz {
width:990px;
height:140px;
position: relative;
margin: 0px auto;
/* background-color: #000; */
}
.logo {
width: 190px;
height: 120px;
position: absolute;
left: 0px;
top: 0px;
z-index: 1;
background-image: url("…/images/logo.png");
background-position: 0px 0px;
}
.search {
width: 990px;
height: 60px;
position: relative;
}
.search form {
width: 490px;
height: 36px;
display: block;
position: absolute;
top: 25px;
left: 50%;
margin-left: -240px;
border: 2px;
border-style: solid;
border-color: red;
}
.search form input {
width: 367px;
height: 26px;
margin-top: 5px;
margin-left: 23px;
border: 0px;
}
.bottom .jz .search form input,
.bottom .jz .search form span,
.bottom .jz .search form button {
display: block;
float: left;
}
.search form span {
width: 26px;
height: 26px;
margin: 5px 5px 5px 5px;
line-height: 26px;
text-align: center;
background-color: #fff;
}
.search form button {
width: 64px;
height: 36px;
background-color: red;
color:#fff;
border-color: red;
border-style: solid;
}
.hotword {
width: 450px;
height: 20px;
position: absolute;
left: 250px;
top: 70px;
}
.hotword li{
float:left;
margin-right: 10px;
}
.hotword li a:hover{
color:red;
}
/* =以下是主页部分================== */
.main{
width: 1190px;
height:480px;
margin:10px auto 0px;
background-color: #000;
}
.zuo{
float: left;
width: 190px;
height: 480px;
margin-right: 10px;
background-color: rgb(105, 103, 105);
}
.menu {
margin-top: 10px;
}
.menu .menu-item {
height: 25px;
line-height: 25px;
padding-left: 18px;
background-color: #fff;
/* transition: 要变化的属性 花费的时间,有单位 运动曲线 何时开始; */
transition: background-color 0.2s;
}
.menu-item:hover{
background-color: aqua;
}
a:hover{
color:red;
}
.font-a {
font-size: 14px;
color: #333;
}
/* 中间部分= */
.zhong{
float: left;
width: 790px;
height: 480px;
margin-right: 10px;
background-color: rgb(180, 180, 180);
}
.zhong-left {
float: left;
position: relative;
width: 590px;
height: 470px;
background-color: rgb(56, 54, 54);
margin: 10px 0px 0px;
}
.zhong-left .sider-list {
position: absolute;
left: 30px;
bottom: 20px;
width: 128px;
height: 15px;
line-height: 15px;
background-color: gray;
text-align: center;
}
.zhong-left .sider-list .sider-item {
position: relative;
float: left;
width: 8px;
height: 8px;
margin: 4px;
background-color: white;
border-radius: 50%;
}
.zhong-left .sider-list .sider-item:hover {
width: 8px;
height: 8px;
border-radius: 50%;
border-style: solid;
border-width: 4px;
border-color: red;
margin: 0px;
}
.zhong-left .sider-left {
position: absolute;
width: 25px;
height: 35px;
top: 217px;
left: 0px;
background-color: rgba(0, 0, 0, 0.3);
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
transition: background-color 0.5s;
}
.zhong-left .sider-right {
position: absolute;
top: 217px;
right: 0px;
width: 25px;
height: 35px;
background-color: rgba(0, 0, 0, 0.3);
border-top-left-radius: 50%;
border-bottom-left-radius: 50%;
transition: background-color 0.5s;
}
.zhong-left .sider-right i {
display: block;
line-height: 35px;
padding-left: 10px;
color: rgb(255, 255, 255);
}
.zhong-left .sider-left i {
display: block;
line-height: 35px;
padding-left: 5px;
color: rgb(255, 255, 255);
}
.zhong-left .sider-left:hover,
.zhong-left .sider-right:hover {
background-color: rgba(0, 0, 0, 0.7);
}
/* ---------------右边图片------------------------------ */
.zhong-you {
float: left;
width: 190px;
height: 470px;
background-color: yellow;
margin: 10px 0px 0px 10px;
}
.goods1 {
float: left;
width: 190px;
height: 140px;
background-color: gray;
margin: 10px 0px 10px 0px;
}
.goods2 {
float: left;
width: 190px;
height: 140px;
background-color: gray;
margin: 10px 0px 10px 0px;
}
.goods3 {
float: left;
width: 190px;
height: 140px;
background-color: gray;
margin: 10px 0px 10px 0px;
}
.zhong-you.goods1 {
margin-top: 0px;
}
/* --------------以下是最右边用户---------------------------------- */
.right1{
float: left;
width: 190px;
height: 480px;
background-color: mintcream;
}
.user {
margin-top: 10px;
width: 190px;
height: 102px;
}
.user-top {
position: relative;
margin-top: 10px;
width: 190px;
height: 102px;
}
.head-img {
position: absolute;
top: 5px;
left: 15px;
width: 70px;
height: 70px;
background-image: url("…/images/下载.png");
border-radius: 50%;
}
.hello {
position: absolute;
top: 20px;
left: 100px;
width: 90px;
height: 16px;
}
.login {
position: absolute;
top: 45px;
left: 100px;
width: 90px;
height: 16px;
background-color: rgb(235, 228, 221);
}
.user-bottom{
position: relative;
margin-top: 10px;
width: 190px;
height: 102px;
/* background-color: rgb(31, 57, 107); */
}
.bot1{
position: absolute;
top: -30px;
left: 6px;
width: 90px;
height: 25px;
border-radius: 30%;
background-color: rgb(155, 89, 9);
}
.bot2{
position: absolute;
top: -30px;
left: 100px;
width: 90px;
height: 25px;
border-radius: 30%;
background-color: rgb(155, 89, 9);
}
.right1 .news{
margin-top: 10px;
width: 190px;
height: 102px;
/* background-color: rgb(14, 88, 88); */
}
.right1 .news span{
margin-top: 10px;
width: 35px;
height: 16px;
margin: center;
/* background-color: rgb(14, 88, 88); */
}
/* .service {
margin-top: 10px;
width: 190px;
height: 102px;
background-color: rgb(2, 44, 44);
} */
.red {
color:red;
}
/* 为什么不在a标签上设置,因为a标签默认的宽度是文字的宽度 /
.right1 .news li {
/ 强制不换行 /
white-space: nowrap;
/ 超出部分隐藏 /
overflow: hidden;
/ 超出部分用省略号隐藏 */
text-overflow: ellipsis;
}
/* .service {
margin-top: 10px;
width: 190px;
height: 102px;
background-color: rgb(2, 44, 44);
} */