上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: <audio src="{$uploadpath}{$FileUpload}" autoplay loop id="audiojs"></audio> <script type="text/javascript"> document.addEventListener('DOMContentLoaded', function () { function audioAutoPlay() { var a 阅读全文
posted @ 2017-03-28 16:35 ghfjj 阅读(7466) 评论(4) 推荐(1)
摘要: 一. Webkit浏览器 (1) 第一种写法: background:-webkit-gradient(linear ,10% 10%,100% 100%, color-stop(0.14,rgb(255,0,0)), color-stop(0.5,rgb(255,255,0)), color-st 阅读全文
posted @ 2017-03-23 17:34 ghfjj 阅读(174) 评论(0) 推荐(0)
摘要: 1、hasClass hasClass()函数用于指示当前jQuery对象所匹配的元素是否含有指定的css类名。如果包含就返回true,否则返回false。 如果当前jQuery对象匹配多个元素,只要其中有任意一个元素含有指定的css类名,就返回true。 http://www.365mini.co 阅读全文
posted @ 2017-03-21 12:04 ghfjj 阅读(110) 评论(0) 推荐(0)
摘要: 到新浪微博 <a href="http://service.weibo.com/share/share.php?appkey=&title=北京大学深圳医院&url={$indexurl}&pic=&searchPic=false&style=simple" target="_blank"></a> 阅读全文
posted @ 2017-03-20 15:12 ghfjj 阅读(241) 评论(0) 推荐(0)
摘要: var maxli=0; $('.btmnav li').each(function(){ if(maxli<$(this).height()){ maxli=$(this).height(); } }) $('.btmnav li').height(maxli); 阅读全文
posted @ 2017-03-16 13:34 ghfjj 阅读(268) 评论(0) 推荐(0)
摘要: 首先我们来梳理一下一个概念,请你一定要记住:在js逻辑运算中,0、""、null、false、undefined、NaN都会判为false,其他都为true(好像没有遗漏了吧,请各位确认下)。这个一定要记住,不然应用||和&&就会出现问题。 这里顺便提下:经常有人问我,看到很多代码if(!!attr 阅读全文
posted @ 2017-03-15 15:47 ghfjj 阅读(223) 评论(0) 推荐(0)
摘要: <script> //判断访问设备,方便后面针对不同设备调用代码 var dev = ""; if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile| 阅读全文
posted @ 2017-03-15 13:29 ghfjj 阅读(398) 评论(0) 推荐(0)
摘要: 转自:http://www.tuicool.com/articles/auEbMzU 感谢他的分享, 一、图片自适应居中 实例图: 实例HTML: 实例CSS: 二、水平响应式列表 实例图: 实例HTML: 实例CSS: 三、水平响应式列表底端对齐 和上个例子差不多,只是增加了底端对齐的的特性。 只 阅读全文
posted @ 2017-03-13 10:53 ghfjj 阅读(7106) 评论(0) 推荐(1)
摘要: 前言 :jq 1.xx版本支持ie6,7,8,jq 2.xx版本不再支持ie6,7,8;该系列为jq 2.0.3版本的源码分析,减少了多浏览器的兼容判断! 函数自执行和函数接口暴露: 可以避免命名污染 阅读全文
posted @ 2017-03-11 09:43 ghfjj 阅读(245) 评论(0) 推荐(0)
摘要: 转自:http://zhoon.github.io/css3/2014/08/23/flex.html 感谢他的整理 flex为css的布局带来了新的时代,作为一个重构工程师,我们再也不用局限于float和position,特别是在移动端,我们可以利用flex轻松实现以往float和psition很 阅读全文
posted @ 2017-03-10 11:25 ghfjj 阅读(19256) 评论(2) 推荐(4)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页