摘要: text-align-last: right; 阅读全文
posted @ 2017-07-19 14:54 javenLee 阅读(497) 评论(0) 推荐(0) 编辑
摘要: $("list_wrap").on("click",".list",function(){}) 其中list_wrap是父元素,list是新增的子元素 阅读全文
posted @ 2017-07-19 14:47 javenLee 阅读(172) 评论(0) 推荐(0) 编辑
摘要: /*超过400px滚动条出现*/max-height:400px; overflow:auto; /*修改滚动条样式*/ .myscroll_wrap::-webkit-scrollbar,.pop .pop_content::-webkit-scrollbar{width:7px;height:7px;} .myscroll_wrap::-webkit-scrollbar,.pop .p... 阅读全文
posted @ 2017-07-19 14:27 javenLee 阅读(7691) 评论(0) 推荐(0) 编辑
摘要: //上移 $('.add_small_wrap').on('click', '.shangyi', function(){ var $curBlock = $(this).parents('.add_small'); var $prveBlock = $curBlock.prev('.add_small'); $curBlock.after($prveBlock); }); //下移 $('.... 阅读全文
posted @ 2017-07-17 11:38 javenLee 阅读(2262) 评论(0) 推荐(0) 编辑
摘要: 在要实现瀑布流布局的页面上引用jquery和masonry,如下 初始化瀑布流插件参数 html布局示例 阅读全文
posted @ 2017-07-17 10:19 javenLee 阅读(653) 评论(0) 推荐(0) 编辑
摘要: text-align-last属性具备auto、start、end、left、right、center和justify几个属性。此属性与text-align属性相比少了match-parent和justify-all。 text-align-last其默认值是auto,而且其只能运用于块元素上,或者 阅读全文
posted @ 2017-07-10 11:20 javenLee 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-07 10:41 javenLee 阅读(93) 评论(0) 推荐(0) 编辑
摘要: DOM对象是JavaScript获得的对象,比如 var box = document.getElementById("#box") ,其中box 是dom对象。 jQuery对象就是用jQuery的类库选择器获得的对象。是通过jQuery包装DOM对象后产生的对象。是一个数组对象。 var $bo 阅读全文
posted @ 2017-07-07 10:23 javenLee 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //防止底层滚动 $(".pop-wraper").on("touchmove",function(){ event.preventDefault(); }); 阅读全文
posted @ 2017-07-06 10:53 javenLee 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 在js代码的上方加上红色这部分,添加一个触发监听事件 阅读全文
posted @ 2017-07-05 17:46 javenLee 阅读(432) 评论(0) 推荐(0) 编辑