2017年11月24日
摘要: js方式: (function(){ var demo = function(options){ this.options = $.extend({ "x" : "1", "y" : "2", "z" : "3" },options); this.init(); }; demo.prototype. 阅读全文
posted @ 2017-11-24 17:43 邢帅杰 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 内容居中:text-align:center;这种用法需要定义在父级元素上面。然后他的子元素的内容就全部居中了。 div居中1:margin:0 auto; div居中2:left: 50%;margin-left: -60px;这种用法需要父级元素的position:relative; 然后子元素 阅读全文
posted @ 2017-11-24 11:18 邢帅杰 阅读(152) 评论(0) 推荐(0) 编辑