摘要: 因为JSON完全是动态的,所以给一个JSON对象添加一个属性是很简单的,如: var json = {}; json.username='xtayfjpk'; 这样就为json对象添加了一个名为username的属性,其值为字符串'xtayfjpk' 反过来想,如何从JSON对象中移除一个属性呢? 阅读全文
posted @ 2017-10-10 10:21 四国诸葛不亮 阅读(2540) 评论(0) 推荐(0) 编辑
摘要: threesixty.js360度产品图片预览jQuery插件 阅读全文
posted @ 2017-08-25 09:45 四国诸葛不亮 阅读(134) 评论(0) 推荐(0) 编辑
摘要: js:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Functions#Defining_functions 阅读全文
posted @ 2017-07-04 09:37 四国诸葛不亮 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 设计师网址导航:http://hao.uisdc.com 网页设计:https://www.awwwards.com http://bm.straightline.jp http://www.webdesignfile.com/ 阅读全文
posted @ 2017-07-04 09:30 四国诸葛不亮 阅读(171) 评论(0) 推荐(0) 编辑
摘要: canvas听了很久,一直没用上,今天去慕课网上看了一个canvas绘制动态时钟的视频,跟着写了一遍,这个例子应用了许多个canvas的API。 这个例子支持ie9以上: 阅读全文
posted @ 2017-06-15 15:55 四国诸葛不亮 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 先看代码 html: <div> <ul> <li></li> <li></li> <li></li> <li></li> </ul> </div> css: ul,li{padding:0;margin:0;list-style: none;} *{box-sizing:border-box;-m 阅读全文
posted @ 2017-05-30 18:23 四国诸葛不亮 阅读(427) 评论(0) 推荐(0) 编辑
摘要: html: <div class="imgbox"> <img src="" /> </div> 图片在盒子中垂直居中 css: .imgbox{ height:100px; width:100px; display:table-cell; vertical-align:middle; text-a 阅读全文
posted @ 2017-05-27 17:36 四国诸葛不亮 阅读(839) 评论(0) 推荐(0) 编辑
摘要: 网上搜索到margin:auto 实现的条件有三: 第一:给居中的元素一个固定的宽度(固定的宽度不是指一定要px) 第二:该元素没有设浮动 第三:父级使用<center></center>标签(center标签在html4.01中已经废弃,在html5里不支持可以设置css属性text-align: 阅读全文
posted @ 2017-05-11 11:36 四国诸葛不亮 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 破解文件地址 将ps或者ai 下的contents/frameworks/ 的amtlib.framework文件用破解文件中的amtlib.framework替换掉 最好是在脱机情况下替换,不然会容易出现替换后ps打不开 阅读全文
posted @ 2017-05-08 17:20 四国诸葛不亮 阅读(254) 评论(0) 推荐(0) 编辑
摘要: html代码: <div id="a"> <p>1</p> <p>2</p> </div> jq代码: $('#a p').hover(function(){ var i=$('#a p').index($(this)); }); 阅读全文
posted @ 2017-03-24 17:35 四国诸葛不亮 阅读(1521) 评论(0) 推荐(0) 编辑