摘要: 方法一:对父级设置固定高度 假如以上案例,我们知道内部div高度100px,那对父级设置css height为100px看看效果。 此方法缺点,父级是固定高度,而不随内容高度自适应高度,没高度。此方法针对能确定父div内的内容高度情况下使用。 方法二:使用css clear清除浮动 在父级div标签 阅读全文
posted @ 2018-09-19 15:27 橙子不是orange 阅读(818) 评论(0) 推荐(0) 编辑
摘要: var fill = function (d) { return d current.getFullYear() - 1) || (month > current.getMonth() + 1)) { if(month == 2){ days= year % 4 == 0 ? 29 : 28; ... 阅读全文
posted @ 2018-09-19 10:00 橙子不是orange 阅读(218) 评论(0) 推荐(0) 编辑
摘要: function getDays(){ //构造当前日期对象 var date = new Date(); //获取年份 var year = date.getFullYear(); //获取当前月份 var mouth = date.getMonth() + 1; //定... 阅读全文
posted @ 2018-09-19 09:57 橙子不是orange 阅读(640) 评论(0) 推荐(0) 编辑
摘要: $(function () { $('.text').click(function () { // 前七天 var sevenDate = []; var myDate = new Date(); //获取系统当前时间 var date1 = new Date(myDate.getTime() - (1 * 24 * 60 ... 阅读全文
posted @ 2018-09-19 09:55 橙子不是orange 阅读(5237) 评论(0) 推荐(1) 编辑