摘要: $(function() { var h = $(document).height()+"px"; var w = $(document).width()+"px"; $('#t').css({ height:h,width:w}); }); 111111 转自... 阅读全文
posted @ 2015-01-30 13:19 KOJYA 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1、isotope(http://isotope.metafizzy.co/)--一个动态智能jQuery布局插件,使用这个插件后,你的布局可以根据屏幕自适应,也可以筛选、布局或排序,而且还有平滑的动画效果,非常不错。2、gips (http://www.egrappler.com/jquery-c... 阅读全文
posted @ 2014-11-12 20:40 KOJYA 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 了解基本的id选择器,类选择器和子选择器,如果就此收手,那你会错失很多灵活方法。虽然本文提及的部分选择器属于CSS3范围内,只在一些时新的浏览器有效,不过还是有必要记得这些选择器。1. ** { margin: 0; padding: 0;}在提到更先进的选择器之前,为初学者之便,先把常见的选择器解... 阅读全文
posted @ 2014-11-12 20:36 KOJYA 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 新的,标签给开发人员提供方便的嵌入媒体方式,这个日后必定很实用。 阅读全文
posted @ 2014-11-12 20:21 KOJYA 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 这个主要是用于嵌入字体的模块,一般适用于嵌入文件较小的字体,中文字体很大,所以很少被嵌入。@font-face{ font-family: 'MyFont'; src: url('myfont.eot'); src: url('myfont.eot?#iefix') format('embe... 阅读全文
posted @ 2014-11-12 20:19 KOJYA 阅读(155) 评论(0) 推荐(0) 编辑
摘要: background-color: #000;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bbb', endColorstr='#000');background-image: -webkit-gradient... 阅读全文
posted @ 2014-11-12 20:14 KOJYA 阅读(120) 评论(0) 推荐(0) 编辑
摘要: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, i... 阅读全文
posted @ 2014-11-12 20:00 KOJYA 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Convert pixels to ems using the formulatarget ÷ context = resultUse the default browser font size of 16px as the context unless otherwise specified例子: 1 <!DOCTYPE HTML> 2 <html lang="en-US"> 3 <head> 4 <meta charset="UTF-8"> 5 <title></title& 阅读全文
posted @ 2013-03-20 20:59 KOJYA 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1 //页面载入2 *$(document).ready(function(){3 // 在这里写你的代码...4 });1 //简写2 $(function(){3 // 在这里写你的代码...4 }); 阅读全文
posted @ 2013-03-12 17:28 KOJYA 阅读(127) 评论(0) 推荐(0) 编辑
摘要: <style> p { background-color: expression(altBgcolor(this)); }</style><script type="text/javascript"> function altBgcolor(elem){ elem.style.backgroundColor=(new Date()).getHours()%2?"#F08A00":"#B8D4FF"; }</script> 阅读全文
posted @ 2013-03-08 13:46 KOJYA 阅读(167) 评论(0) 推荐(0) 编辑