vuejs7-v-for指令3

& lt; !DOCTYPE html>

& lt; html>

& lt; head>

& lt;元charset=皍tf-8"在

& lt;元http-equiv=癤-UA-Compatible"内容=癐E=edge"在

& lt; title> & lt;/title>

& lt; style>

* {

保证金:0;

填充:0;

box-sizing: border-box

}


html {

字体大小:12 px;

字体类型:Ubuntu, simHei,无衬线;

粗细:400

}


身体{

字体大小:1 rem

}


#应用{

保证金:0汽车;

max-width: 640 px

}


。分页{

显示:inline-block;

padding-left: 0;

保证金:21 px 0;

border - radius: 3 px;

}


。分页的在李{

显示:内联;

}


。分页的在李比;{

位置:相对;

浮动:左;

填充:6 px 12 px;

行高:1.5;

文字修饰:没有。

颜色:# 009 a61;

background - color: # fff;

边界:1 px固体# ddd;

margin-left: 1 px;

list-style:没有。

}


。分页的在李比;答:悬停{

background - color: # eee;

}


。分页.active {

颜色:# fff;

background - color: # 009 a61;

border-left:没有。

边境:没有。

}


。分页.active:悬停{

背景:# 009 a61;

光标:违约;

}


。分页的在李:第一个孩子比;每分钟一个{

border-bottom-left-radius: 3 px;

border-top-left-radius: 3 px;

}


。分页的在李:胎比;{

border-bottom-right-radius: 3 px;

border-top-right-radius: 3 px;

}

& lt;/style>

& lt;/head>

& lt; body>

& lt; div id=癮pp"在

,,,,& lt; ul类=皃agination"祝辞

,,,,,,& lt;李v=皀 pageCount"在

,,,,,,,,& lt; a href=https://www.yisu.com/zixun/眏avascripit:无效(0)”v-bind:类=" activeNumber===n + 1 ?“活跃”:“> {{n + 1}}

,,,,,,& lt;/li>

,,,,& lt;/ul>

,,& lt;/div>

& lt;脚本https://www.yisu.com/zixun/src=" http://static.runoob.com/assets/vue/1.0.11/vue.min.js ">

& lt; script>

var vm=new Vue ({

el:“# app",

数据:{

activeNumber: 1,

pageCount: 10

}

});

& lt;/script>

& lt;/body>

& lt;/html>

 vuejs7-v-for指令3

vuejs7-v-for指令3