p {
color: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
}is compiled to:
p { | <!--HTML代码:--> | |
| <embed src="http://static.youku.com/qplayer.swf?playMode=mp4&winType=index&VideoIDS=XNDI0OTM4MDc2&isAutoPlay=false&ShowRelatedVideo=false" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" width="600" height="480"></embed> | |
| <!--使用方法: | |
| 我们所要做的就是找到自己想要从优酷上引用的视频的ID,然后替换该段代码中**IDS=XNDI0OTM4MDc2中的XNDI0OTM4MDc2**,然后再将该段代码放置与网页中即可--> |
| <!-- Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references --> | |
| <link rel="shortcut icon" href="/favicon.ico"> | |
| <link rel="apple-touch-icon" href="/touch-icon-iphone.png"> | |
| <link rel="apple-touch-icon" sizes="72x72" href="touch-icon-ipad.png" /> | |
| <link rel="apple-touch-icon" sizes="114x114" href="touch-icon-iphone4.png" /> | |
| <link rel="apple-touch-icon-precomposed" href="/touch-icon-android.png"/> |
| <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> |
p {
color: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
}is compiled to:
p { | /* one item */ | |
| li:first-child:nth-last-child(1) { | |
| width: 100%; | |
| } | |
| /* two items */ | |
| li:first-child:nth-last-child(2), | |
| li:first-child:nth-last-child(2) ~ li { | |
| width: 50%; | |
| } |
| //a alternative to javascript setInterval | |
| function interval(func, wait, times){ | |
| var interv = function(w, t){ | |
| return function(){ | |
| if(typeof t === "undefined" || t-- > 0){ | |
| setTimeout(interv, w); | |
| try{ | |
| func.call(null); | |
| } | |
| catch(e){ |
| /*灰度*/ | |
| .grayscale { | |
| -webkit-filter: grayscale(1); | |
| filter: grayscale(1); | |
| } | |
| /*褐色*/ | |
| .sepia { | |
| -webkit-filter: sepia(1); | |
| filter: sepia(1); |
| // Click to inject js into page | |
| chrome.browserAction.onClicked.addListener(function(tab) { | |
| chrometabs.executeScript(null, {file:'js/injector.js'}); | |
| }); |
| body { | |
| font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
| font-weight: 300; | |
| } |
| var preload = ['1.png', '2.png', '3.png']; | |
| var images = []; | |
| for (var i = 0; i < preload.length; i++) { | |
| images[i] = new Image(); | |
| images[i].src = prelaod[i]; | |
| } |