div 滚动条自动滚动 //用JS添加数据 var data = [ { “Img”: “img/police/nan.jpg”, “code”: “赵鹏”, “CreateTime”: “2022-06-30” }, { “Img”: “img/police/nv.jpg”, “code”: “王晴”, “CreateTime”: “2022-06-30” }, { “Img”: “img/police/nan.jpg”, “code”: “李立”, “CreateTime”: “2022-06-30” }, { “Img”: “img/police/nv.jpg”, “code”: “夏雨”, “CreateTime”: “2022-06-30” }, { “Img”: “img/police/nan.jpg”, “code”: “柳树”, “CreateTime”: “2022-06-30” }, { “Img”: “img/police/nv.jpg”, “code”: “赵砚”, “CreateTime”: “2022-06-30” }, { “Img”: “img/police/nan.jpg”, “code”: “王三小”, “CreateTime”: “2022-06-30” }, { “Img”: “img/police/nv.jpg”, “code”: “王三一”, “CreateTime”: “2022-06-30” } ]; var _html = “”; for (var i = 0; i < data.length; i++) { _html += “<div class=’policediv’ id=’test’>” + “<div style=’width:20%;left:1%;margin-top:1%;float:left’>” + “<img src=’https://www.cnblogs.com/syeacfpl/p/” + data[i].Img + “‘ style=’width:40%;height:6%;’/>” + “</div>” + “<div style=’width:75%;font-size:14px;margin-top:1%;float:right’>” + “<p>” + “<label class=’cbInput’>” + data[i].code + “</label>” + “<label class=’cbInput’>” + data[i].CreateTime + “</label>” + “</p>” + “</div>” + “</div>” } $(“#gridtablejw”).html(_html);
2024最新激活全家桶教程,稳定运行到2099年,请移步至置顶文章:https://sigusoft.com/99576.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。 文章由激活谷谷主-小谷整理,转载请注明出处:https://sigusoft.com/52576.html