摘要: <script src="layer.js的路径"></script>//引入layer.js<script> layer.open({ type: 1, //page层 area: ['500px', '300px'], title: '弹出框', shadeClose:true,//点击遮罩关闭 阅读全文
posted @ 2017-05-18 11:18 Sun_Song 阅读(542) 评论(0) 推荐(0) 编辑
摘要: div{position:relative} div div{position:absolute;left:0;right:0;margin:0 auto;} 阅读全文
posted @ 2017-05-12 18:16 Sun_Song 阅读(922) 评论(0) 推荐(0) 编辑
摘要: div{vertical-align:top} 阅读全文
posted @ 2017-05-12 18:14 Sun_Song 阅读(752) 评论(0) 推荐(0) 编辑
摘要: .fill { object-fit: fill; } .contain { object-fit: contain; } .cover { object-fit: cover; } .none { object-fit: none; } .scale-down { object-fit: scal 阅读全文
posted @ 2017-05-09 19:03 Sun_Song 阅读(442) 评论(0) 推荐(0) 编辑
摘要: css sprites 缩减图片加载个数以提升网页加载速度,利用CSS的“background-image”,“background- repeat”,“background-position”的组合进行背景定位,background-position可以用数字精确的定位出背景图片的位置 <!DOC 阅读全文
posted @ 2017-05-06 13:33 Sun_Song 阅读(162) 评论(0) 推荐(0) 编辑
摘要: var light=0;//选中的个数 var dark=$(".chk").length;//总个数 $(".chk").unbind("click").bind("click",function(){ //選中圓圈的個數 if($(this).hasClass("chk_active")==fa 阅读全文
posted @ 2017-05-06 11:02 Sun_Song 阅读(135) 评论(0) 推荐(0) 编辑
摘要: admin 网站后台管理相关 admin 主要是 top,menu,main,drag文件组成, admin-》templates存放HTML文件,default是默认模板,一般改第二个 language 整个网站要用到的语言文字 有中文,繁体中文,英文。common.php最常用 mobile 手 阅读全文
posted @ 2017-05-06 10:51 Sun_Song 阅读(166) 评论(0) 推荐(0) 编辑
摘要: method draw view source导出源代码 阅读全文
posted @ 2017-05-05 17:17 Sun_Song 阅读(285) 评论(0) 推荐(0) 编辑
摘要: vertical-align: middle; 阅读全文
posted @ 2017-05-05 16:33 Sun_Song 阅读(159) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"> <title></title> <style> .wrap { display: -webkit-box; } .left, .right { width:45%; border: 1px soli 阅读全文
posted @ 2017-05-05 16:20 Sun_Song 阅读(2318) 评论(0) 推荐(0) 编辑