Skip to content

Instantly share code, notes, and snippets.

@safaring
safaring / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@safaring
safaring / dabblet.css
Created March 20, 2013 09:29
纯CSS打造Android Logo
/**
* 纯CSS打造Android Logo
*/
.android {
position: absolute;
left: 320px;
top: 230px;
}
/**** BODY ****/
@safaring
safaring / dabblet.css
Created March 20, 2013 09:28
纯CSS打造Android Logo
/**
* 纯CSS打造Android Logo
*/
.android {
position: absolute;
left: 320px;
top: 230px;
}
/**** BODY ****/
@safaring
safaring / dabblet.css
Created March 20, 2013 09:28
纯CSS打造Android Logo
/**
* 纯CSS打造Android Logo
*/
.android {
position: absolute;
left: 320px;
top: 230px;
}
/**** BODY ****/
@safaring
safaring / dabblet.css
Created March 20, 2013 09:27
纯CSS打造Android Logo
/**
* 纯CSS打造Android Logo
*/
.android {
position: absolute;
left: 320px;
top: 230px;
}
/**** BODY ****/
h3 {text-align: center; font-family: Microsoft Yahei;}
.box {width: 500px; height: 300px; background-color: #eee;margin: 0 auto; text-align:center; border: 1px solid #ddd;margin-bottom: 10px;font-size:0; *font-size:200px;-webkit-text-size-adjust:none;}
.box img {vertical-align: middle;}
.box:after {display:inline-block; width:0; height:100%; content:"center"; vertical-align:middle; overflow:hidden;}