Skip to content

Instantly share code, notes, and snippets.

@feimoslong
feimoslong / unicode.txt
Created August 28, 2012 08:19
unicode字体
宋体 SimSun \5B8B\4F53
黑体 SimHei \9ED1\4F53
微软雅黑 Microsoft YaHei \5FAE\8F6F\96C5\9ED1
微软正黑体 Microsoft JhengHei \5FAE\x8F6F\6B63\9ED1\4F53
新宋体 NSimSun \65B0\5B8B\4F53
新细明体 PMingLiU \65B0\7EC6\660E\4F53
细明体 MingLiU \7EC6\660E\4F53
标楷体 DFKai-SB \6807\6977\4F53
仿宋 FangSong \4EFF\5B8B
楷体 KaiTi \6977\4F53
@feimoslong
feimoslong / object.create.js
Created July 3, 2012 00:23
object.create()
if(typeof Object.create !=="function"){
Object.create = function(o){
function F(){}
F.prototype=o;
return new F();
}
}
@feimoslong
feimoslong / object.create.js
Created July 3, 2012 00:23
object.create()
if(typeof Object.create !=="function"){
Object.create = function(o){
function F(){}
F.prototype=o;
return new F();
}
}
.g-mask {
z-index: 150;
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
background: black;
background: -webkit-radial-gradient(center,rgba(0, 0, 0, 0.3),rgba(0, 0, 0, 1) 80%);
background: -moz-radial-gradient(center,rgba(0, 0, 0, 0.3),rgba(0, 0, 0, 1) 80%);
.mini_tags_3{
position:absolute;top:0;
left:0;
transform:rotate(-45deg) translate(-30px,-12px);
-webkit-transform:rotate(-45deg) translate(-30px,-12px);
-moz-transform:rotate(-45deg) translate(-30px,-12px);
filter:progid:DXImageTransform.Microsoft.Matrix(SizingMethod="auto expand",M11=0.7,M12=0.7,M21=-0.7,M22=0.7);
}
</style>
.mini_tags{position:absolute;bottom:0;right:0;width:100%;background:rgba(0,0,0,.7);filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#b2000000',EndColorStr='#b2000000');}
:root .mini_tags{filter:proid:DXImageTransform.Micrsoft.Gradient(GradientType=0,StartColorStr="#00000000",EndColorStr='#00000000');}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
</head>
<body>
</body>
</html>
@feimoslong
feimoslong / ie%20box-shadow.css
Created June 1, 2012 02:35
IE 支持boxshadow
filter:progid: DXImageTransform.Microsoft.Shadow(color=#ffffff,direction=0,strength=0) progid: DXImageTransform.Microsoft.Shadow(color=#aaaaaa,direction=90,strength=5) progid: DXImageTransform.Microsoft.Shadow(color=#aaaaaa,direction=180,strength=8) progid: DXImageTransform.Microsoft.Shadow(color=#cccccc,direction=270,strength=5)
vertical-align:-2px;*vertical-align:-1px;