Skip to content

Instantly share code, notes, and snippets.

/* new clearfix */
.clearfix
visibility: hidden
display: block
font-size: 0
content: " "
clear: both
height: 0
*zoom:1
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon(s) in the root directory -->
.image-wall-wrapper{
font-size: 0;
}
.image-wall-wrapper .image-item{
display: inline-block;
background-size: cover;
background-repeat: no-repeat;
/*25% is for 4*4*/
width: 25%;
/*padding-top has the same value to width*/

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
html{
-webkit-touch-callout: none;
touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
@media (orientaion: landscape){
body{
transform: rotate(-90deg);
}
}
// prevent ios touchmove will cause page scolller
window.addEventListener('touchmove',function(ev){
ev.preventDefault();
});
@kmokidd
kmokidd / Super-Media-Query.css
Created March 25, 2016 02:41
iPhone family. Main Android. Wechat and QQ's X5
// --------------------------MQ--------------------------//
/* iPhone4 iPhone5/5s
* 超级低端 Android
*/
@media (max-device-width: 320px){
}
/* Especially for iPhone4 */
@media (max-device-width: 320px) and (max-device-height: 480px) and (-webkit-min-device-pixel-ratio: 2){
}
@kmokidd
kmokidd / font-family
Last active September 29, 2016 02:58
为了兼容英文中文、Win和Mac,要注意font-family的使用
font-family:
/* 西文 */
-apple-system, BlinkSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helevetica, Arial,
/* 中文 */
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif;