Files
ClassContent/历届学生/逯帅帅/项目开发/学生项目/谢文军/小米官网/css/index.css
2024-09-27 02:06:13 +08:00

127 lines
2.3 KiB
CSS

.iconfont{
margin-right: 4px;
font-size: 20px;
line-height: 20px;
vertical-align: -1px;
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.header{
height: 40px;
color: #b0b0b0;
background: #333;
line-height: 40px;
}
.herdd li,
.herdc li,
.content li{
display: inline-block;
}
.header a{
color:#b0b0b0;
}
.header .herdd li a::after,
.herdc li:nth-child(-n+3) a::after{
content: "";
width: 1.6px;
height: 16px;
background: #424242;
position: absolute;
top: 50%;
transform: translateY(-50%);
margin: 0 7px;
}
.header .herdd li a,
.header .herdc li:nth-child(-n+3) a
{
position: relative;
margin-right: 10px;
}
.header .herdd li:last-child a::after,
.herdc li:nth-child(3) a::after{
content: ;
position: static;
}
.herdc li:last-child{
width: 120px;
height: 40px;
color: #b0b0b0;
background: #424242;
text-align: center;
position: relative;
}
.herdc li:last-child .aaa{
width: 316px;
height: 0;
color: #424242;
box-shadow: 0 2px 10px rgb(0 0 0 / 15%);
background: #fff;
position: absolute;
right: 0;
line-height: 100px;
font-size: 12px;
transition: height .3s;
}
.herdc li:last-child:hover span {
display: block;
}
.herdc li:last-child:hover .aaa {
height: 100px;
}
.herdc li:last-child span{
display: none;
transition: all 1s ease 3s;
}
.search {
margin-top: 25px;
overflow: hidden;
}
.search .logo {
width: 55px;
height: 55px;
background: #ff6700 url("../img/mi-logo.png");
background-position: center;
}
.search ul {
margin-left: 187px;
height: 55px;
line-height: 55px;
}
.search ul li {
float: left;
padding: 0 10px;
}
.search ul li a{
color: #333;
}
.search .bbb {
width: 296px;
height: 50px;
border: 1px solid #e0e0e0;
}
.search .bbb input{
width: 245px;
height: 48px;
border: none;
outline: none;
padding-left: 10px;
padding-right: 10px;
box-sizing: border-box;
border-right: 1px solid #e0e0e0;
}
.search .ccc {
width: 51px;
height: 48px;
text-align: center;
line-height: 48px;
}
.search .ccc:hover {
background: #ff6700;
}
.search .ccc:hover i {
color: #fff;
}