如何 更换vue的图标-凯发k8官方网
{{nocoupon}}
{{coupon_left1}}{{num}}{{coupon_left2}}
{{coupon_right1}}
{{coupon.price}}{{unitprice}}
{{available}}
{{universalcoupon}}
{{date}}
{{application}}
这是vue.js代码
var content = new vue({
el: ".app-web",
data: {
coupon: '优惠券',
nocoupon: '不使用优惠券',
coupon_left1: '有',
num: '4',
coupon_left2: '张优惠券可用',
coupon_right1: '优惠券使用说明',
website: '#',
unitprice: '元',
available: '满100元可用',
universalcoupon: '全场通用券',
date: '2018.06.07 - 2018.07.07到期',
application: '此券应用去所有商品(特殊商品除外)',
coupons: [
{price: '20'},
{price: '50'},
{price: '100'}
],
}
});
这是css样式
html,
body,
div,
ul,
li,
dl,
dt,
dd,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
em,
b,
strong,
img,
input,
textarea,
select,
form {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
img {
border: 0 none;
vertical-align: top;
}
a {
color: #3d3d3d;
text-decoration: none;
}
a:hover {
color: #f60;
}
input {
border: none;
outline: none;
}
.clearfix {
*zoom: 1;
}
.clearfix:after {
content: ".";
visibility: hidden;
clear: both;
display: block;
height: 0;
font-size: 0;
}
html{
font-size: 50px;
}
body {
width: 100%;
margin: 0 auto;
padding-bottom: 1.6rem;
font-family: "微软雅黑";
background: #f1f2f6;
font-size: 0.24rem;
overflow-x: hidden;
}
/*头部*/
header {
padding-bottom: 0.4rem;
}
header .top {
background-color: #000000;
width: 100%;
height: 1rem;
color: #ffffff;
}
header .top img {
float: left;
padding-top: 0.2rem;
padding-left: 0.2rem;
}
header .top .title{
font-size: 0.5rem;
line-height: 1rem;
letter-spacing: 0.1rem;
text-align: center;
}
.bottom {
padding-bottom: 0.5rem;
}
/*no_coupon*/
.no_coupon {
width: 100%;
height: 0.9rem;
background: #ffffff;
}
.no_coupon .left {
font-size: 0.32rem;
color: #2f2f2f;
line-height: 0.9rem;
letter-spacing: 0.06rem;
display: block;
padding-left: 0.5rem;
}
.no_coupon .right {
float: right;
margin: -0.6rem 0.2rem;
background: no-repeat;
width: 0.44rem;
height: 0.44rem;
}
/*.top*/
.content .top {
width: 100%;
height: 1rem;
line-height: 1rem;
font-size: 0.28rem;
letter-spacing:0.06rem;
box-sizing: content-box;
}
.content .top .left {
padding-left: 0.5rem;
}
.content .top .left i {
font-style: normal;
color: #fd7290;
}
.content .top .right {
float: right;
padding-right: 0.4rem;
}
.content .top .right img {
vertical-align: middle;
padding-bottom: 0.04rem;
}
.content .top .right a {
font-size: 0.28rem;
color: #0090ff;
text-decoration: underline;
}
/*coupon_1*/
.coupon_1 {
width: 100%;
height: 1.8rem;
background: no-repeat center;
background-size: 96% 100%;
letter-spacing: 0.02rem;
}
.changecoupon_1{
height: 2rem;
}
.coupon_1 .left {
width: 29%;
color: #fd7290;
text-align: center;
padding: 0.2rem 0px 0 0.22rem;
float: left;
}
.coupon_1 .left span {
font-size: 0.22rem;
}
.coupon_1 .left .left_top {
width: 100%;
font-size: 0.6rem;
padding-bottom: 0.08rem;
}
.coupon_1 .left .left_bottom {
width: 100%;
font-size: 0.08rem;
}
.coupon_1 .center {
width: 68%;
float: right;
padding-top: 0.3rem;
}
.coupon_1 .center .center_1 {
font-size: 0.2rem;
color: #2f2f2f;
padding-bottom: 0.1rem;
}
.coupon_1 .center .center_2 {
font-size: 0.2rem;
color: #9d9d9d;
padding-bottom: 0.2rem;
}
.coupon_1 .center .center_3 {
font-size: 0.2rem;
color: #9d9d9d;
padding-bottom: 0.3rem;
}
.coupon_1 .center .center_3 img {
vertical-align: middle;
}
.coupon_1 .center .right{
float: right;
width: 3%;
margin: -1.7rem 0.2rem;
}
创作挑战赛新人创作奖励来咯,坚持创作打卡瓜分现金大奖总结
以上是凯发k8官方网为你收集整理的如何 更换vue的图标_vue如何实现图标点击选中后换一个图标(只单选)的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇:
- 下一篇: