摘要: 父元素中设置font-size:0;letter-spaceing:-4px; 阅读全文
posted @ 2018-12-10 15:19 leestar 阅读(165) 评论(0) 推荐(0) 编辑
摘要: dom结构: js代码: 注:如想实现iOS网页内联视频需要添加“iphone-inline-video.js”这个插件,然后在vedio上面添加“webkit-playsinline”,“playsinline”这两个属性 阅读全文
posted @ 2018-01-26 16:01 leestar 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 需要引入angular.js,angular-ui-router.min.js 首页 关于我们 联系我们 var app = angular.module("instruction", ['ui.router']) app.config(["$urlRouterProvider", "$statePr... 阅读全文
posted @ 2016-12-17 15:25 leestar 阅读(195) 评论(0) 推荐(0) 编辑
摘要: (function (){ var _self = this; _self.width = 640;//设置默认最大宽度 _self.fontSize = 100;//默认字体大小 _self.widthProportion = function(){var p = (document.body&&docum... 阅读全文
posted @ 2016-11-29 09:56 leestar 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 方法一: 用一个“ghost”伪元素(看不见的伪元素)和 inline-block / vertical-align 可以搞定居中,非常巧妙。但是这个方法要求待居中的元素是 inline-block,不是一个真正通用的方案。 html如下: css如下: 方法二: 可以用table布局方法,但是这种 阅读全文
posted @ 2016-11-22 11:03 leestar 阅读(21541) 评论(0) 推荐(1) 编辑
摘要: http://nicolasgallagher.com/pure-css-speech-bubbles/demo/ http://share.baidu.com/ 阅读全文
posted @ 2016-06-01 17:24 leestar 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 前提是要给div加一个行内的display:none; 阅读全文
posted @ 2016-06-01 17:22 leestar 阅读(2433) 评论(0) 推荐(0) 编辑
摘要: var t=10; setInterval(function refer(){ if(t>0){ document.getElementById("em").innerHTML = t; t-- }else{ location="http://www.baidu.com" } },1000) 阅读全文
posted @ 2016-06-01 17:18 leestar 阅读(220) 评论(0) 推荐(0) 编辑
摘要: $("button").click(function(event){ event.stopPropagation(); if($("div").is(':hidden')){ $("div").show() }else{ $("div").hide(); } }) $(document).bind(... 阅读全文
posted @ 2016-05-30 17:54 leestar 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: .partners li a{ display:block; } .partners li{ float:left; height:39px; padding:12px 0; line-height:39px; margin-right:7px; position:relative; } 阅读全文
posted @ 2016-04-14 14:36 leestar 阅读(1027) 评论(0) 推荐(0) 编辑