这篇文章主要介绍“JavaScript HTML DOM导航怎么使用”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“JavaScript HTML DOM导航怎
顺晟科技
2021-09-21 11:40:42
253
html代码
<div id="nav">
<div class="content">
<div class="left"><i class="iconfont icon-gouwuche"></i><span class="price">购物车是空的</span></div>
<div class="right"><a href="">立即下单</a></div>
</div>
</div>
#nav {
position: fixed;
bottom: 0;
left: 0;
width: ;
}
#nav .content {
max-width: 800px;
width: ;
margin: 0 auto;
background-color: #fff;
height: 45px;
position: relative;
}
#nav .content:before {
content: "";
display: block;
position: absolute;
left: 0;
top: 0;
width: 200%;
height: 1px;
border-top: 1px solid #999999;
transform: scale(0.5,0.5);
transform-origin: 0 0;
-webkit-transform: scale(0.5,0.5);
-webkit-transform-origin: 0 0;
box-szing: border-box;
}
#nav .content .left {
height: 45px;
float: left;
width: 70%;
}
#nav .content .left i.iconfont {
position: absolute;
top: -10px;
left: 4%;
display: block;
width: 45px;
height: 45px;
border-radius: ;
background-color: #cccccc;
float: left;
text-align: center;
line-height: 45px;
color: #fff;
font-size: 1.6em;
}
#nav .content .left .price {
float: left;
display: block;
line-height: 45px;
margin-left: 80px;
color: #999;
}
#nav .content .right {
width: 30%;
height: 45px;
float: right;
text-align: center;
}
#nav .content .right a {
display: block;
line-height: 50px;
background-color: #FF6600;
color: #fff;
}
#nav #cart-active {
background-color: #04BE02;
}
19
2022-10
19
2022-10
30
2022-09
15
2022-09
15
2022-09
15
2022-09