Skip to content

Instantly share code, notes, and snippets.

@zhuzhuaicoding
Created June 3, 2014 09:13
Show Gist options
  • Save zhuzhuaicoding/1e0dbbba470080adfa13 to your computer and use it in GitHub Desktop.
Save zhuzhuaicoding/1e0dbbba470080adfa13 to your computer and use it in GitHub Desktop.
小三角
.triangle_up{position:absolute;top:-5px;left:50%;border:0 none;border-top:1px solid #BDBDBD;border-right:1px solid #BDBDBD;background:#fff;background:-moz-linear-gradient(top,rgba(255,255,255,.96) 0,rgba(255,255,255,.96) 55%,rgba(255,255,255,0) 56%,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,right top,left bottom,color-stop(0%,rgba(255,255,255,1)),color-stop(55%,rgba(255,255,255,1)),color-stop(56%,rgba(255,255,255,0)),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(right top,rgba(255,255,255,.96) 0,rgba(255,255,255,.96) 55%,rgba(255,255,255,0) 56%,rgba(255,255,255,0) 100%);background:linear-gradient(to left bottom,rgba(255,255,255,.96) 0,rgba(255,255,255,.96) 55%,rgba(255,255,255,0) 56%,rgba(255,255,255,0) 100%);width:8px;height:8px;margin-left:-4px;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467,M21=-0.7071067811865467,M22=0.7071067811865483,SizingMethod='auto expand')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment