html5 ul li 自动收回,vue遍历四个ul ,每个ul中有四个li.如何不破坏html结构?

由于页面中使用了css3方法 ul>li*4 margin-right:0;

导致只能用ul允许 存在四个li .不然在ul多了五个li. 页面就不好看了。

// CurriculumSpecial.html

var na1=new Vue({

el:".col-4",

data: {

"ulist":[1,2,3,4],

"course":[

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","baoming":true},

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

{"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","baoming":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","baoming":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

// {"url":"http://mooc-10050339.cos.myqcloud.com/course/jiazhangmooc/cthimage/Y010.png","title":"幼儿阶段基础课程","time":"12","bm":true},

],

},

created:function(){

// console.log(ulist);

}

})

  • 已报名

    报名

    {{st.title}} 总学时:{{st.time}}

bVU0qh?w=443&h=176

就是每个ul中遍历四个li.一共有四个 。

但data数据是否有误?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值