/* top-bar 顶部导航样式的书写 */
*{
padding: 0;
margin: 0;
list-style: none;
text-decoration: none;
}
.top-bar-wrap{
width: 100%;
height: 40px;
background-color: #333333;
line-height: 38px;
}
.w{
width: 1226px;
margin: 0 auto;
}
.top-bar>ul{
float: left;
}
.top-bar>ol{
float: right;
}
.top-bar>ul>li{
float: left;
}
.top-bar>ol>li{
float: left;
}
.top-bar a{
font-size: 12px;
color: #A4A4A4;
}
.top-bar a:hover{
color: white;
}
.top-bar .line{
font-size: 12px;
color: #424242;
margin: 0 4px;
}
/* 小米商誉下拉二维码的样式书写 */
.downloadapp1{
position: relative;
}
.QRcode1{
position: absolute;
width: 125px;
height: 0;
transition: all 300ms;
overflow: hidden;
box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
text-align: center;
left: -35px;
top: 40px;
z-index: 200;
}
.QRcode1>img{
width: 86px;
margin-top: 18px;
}
.downloadapp1>i{
position: absolute;
left: 18px;
top: 17px;
color: white;
display: none;
}
.QRcode1 p{
margin-top: -15px;
font-size: 14px;
}
/* 二维码QRcode1设置缓慢下拉小效果 */
.downloadapp1:hover>.QRcode1{
width: 125px;
height: 148px;
background-color: white;
}
.downloadapp1:hover>i{
display: block;
}
/* 购物车背景大小样式的设置 */
.shopcar{
width: 120px;
height: 40px;
background-color: #424242;
text-align: center;
margin-left: 20px;
position: relative;
}
.shopcar>i{
font-size: 16px;
color:
小米官网CSS样式书写
最新推荐文章于 2025-05-13 07:57:52 发布