css便签样式

摘自网络:

  1 <!doctype html>
  2 <html>
  3 <head>
  4 <meta charset="utf-8">
  5 <title>live preview</title>
  6 <style>
  7 body {
  8 background: #f5f5f5;
  9 font-family: arial, "helvetica neue", helvetica, sans-serif;
 10 font-size: 12px;
 11 padding: 50px 0 10px 0;
 12 }
 13 .custom {
 14 width: 260px;
 15 margin: 0 auto;
 16 }
 17 .tags {
 18 padding: 0;
 19 }
 20 .tags a {
 21 background-image: -moz-linear-gradient(top, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0.1) 99%, rgba(0,0,0,0.1) 100%);
 22 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.12)), color-stop(99%,rgba(0,0,0,0.1)), color-stop(100%,rgba(0,0,0,0.1)));
 23 background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 24 background-image: -o-linear-gradient(top, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 25 background-image: -ms-linear-gradient(top, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 26 background-image: linear-gradient(top, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 27 filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#1fffffff', endcolorstr='#1a000000',gradienttype=0 );
 28 -webkit-border-top-right-radius: 3px;
 29 -webkit-border-bottom-right-radius: 3px;
 30 -moz-border-radius-topright: 3px;
 31 -moz-border-radius-bottomright: 3px;
 32 border-top-right-radius: 3px;
 33 border-bottom-right-radius: 3px;
 34 box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
 35 display: inline-block;
 36 font-size: 12px;
 37 font-weight: bold;
 38 line-height: 25px;
 39 height: 25px;
 40 padding: 0 10px;
 41 position: relative;
 42 text-shadow: 0 1px 0 rgba(0,0,0,0.5);
 43 text-decoration: none;
 44 margin: 0 15px 5px 0;
 45 border: 1px solid;
 46 border-left: 0;
 47 color: #fff;
 48 }
 49 .tags a:before {
 50 background-image: -moz-linear-gradient(-45deg, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0.1) 99%, rgba(0,0,0,0.1) 100%);
 51 background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(255,255,255,0.12)), color-stop(99%,rgba(0,0,0,0.1)), color-stop(100%,rgba(0,0,0,0.1)));
 52 background-image: -webkit-linear-gradient(-45deg, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 53 background-image: -o-linear-gradient(-45deg, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 54 background-image: -ms-linear-gradient(-45deg, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 55 background-image: linear-gradient(-45deg, rgba(255,255,255,0.12) 0%,rgba(0,0,0,0.1) 99%,rgba(0,0,0,0.1) 100%);
 56 filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#1fffffff', endcolorstr='#1a000000',gradienttype=1 );
 57 -webkit-transform: rotate(45deg);
 58 -moz-transform: rotate(45deg);
 59 -ms-transform: rotate(45deg);
 60 -o-transform: rotate(45deg);
 61 transform: rotate(45deg);
 62 filter: progid:dximagetransform.microsoft.matrix(/* ie6–ie9 */ m11=0.7071067811865476, m12=-0.7071067811865475, m21=0.7071067811865475, m22=0.7071067811865476, sizingmethod='auto expand');
 63 zoom: 1;
 64 box-shadow: 1px 0px 0 rgba(255,255,255,0.5) inset;
 65 content: '';
 66 height: 18px;
 67 left: -10px;
 68 position: absolute;
 69 top: 3px;
 70 width: 18px;
 71 z-index: -1;
 72 border: 1px solid;
 73 border-right: 0;
 74 border-top: 0;
 75 }
 76 .tags a:after {
 77 position: absolute;
 78 background: #fff;
 79 content: '';
 80 width: 5px;
 81 height: 5px;
 82 left: 0;
 83 border-radius: 5px;
 84 top: 9px;
 85 border: 1px solid #888;
 86 }
 87 .tags a:hover {
 88 background-image: -moz-linear-gradient(top, rgba(255,255,255,0.25) 0%, rgba(0,0,0,0.1) 100%);
 89 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.25)), color-stop(100%,rgba(0,0,0,0.1)));
 90 background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
 91 background-image: -o-linear-gradient(top, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
 92 background-image: -ms-linear-gradient(top, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
 93 background-image: linear-gradient(top, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
 94 filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#40ffffff', endcolorstr='#1a000000',gradienttype=0 );
 95 }
 96 .tags a:hover:before {
 97 background-image: -moz-linear-gradient(-45deg, rgba(255,255,255,0.25) 0%, rgba(0,0,0,0.1) 100%);
 98 background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(255,255,255,0.25)), color-stop(100%,rgba(0,0,0,0.1)));
 99 background-image: -webkit-linear-gradient(-45deg, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
100 background-image: -o-linear-gradient(-45deg, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
101 background-image: -ms-linear-gradient(-45deg, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
102 background-image: linear-gradient(-45deg, rgba(255,255,255,0.25) 0%,rgba(0,0,0,0.1) 100%);
103 filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#40ffffff', endcolorstr='#1a000000',gradienttype=1 );
104 }
105 .tags a:active {
106 background-image: -moz-linear-gradient(top, rgba(0,0,0,0.14) 0%, rgba(255,255,255,0.12) 100%);
107 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.14)), color-stop(100%,rgba(255,255,255,0.12)));
108 background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
109 background-image: -o-linear-gradient(top, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
110 background-image: -ms-linear-gradient(top, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
111 background-image: linear-gradient(top, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
112 filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#24000000', endcolorstr='#1fffffff',gradienttype=0 );
113 }
114 .tags a:active:before {
115 background-image: -moz-linear-gradient(-45deg, rgba(0,0,0,0.14) 0%, rgba(255,255,255,0.12) 100%);
116 background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(0,0,0,0.14)), color-stop(100%,rgba(255,255,255,0.12)));
117 background-image: -webkit-linear-gradient(-45deg, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
118 background-image: -o-linear-gradient(-45deg, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
119 background-image: -ms-linear-gradient(-45deg, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
120 background-image: linear-gradient(-45deg, rgba(0,0,0,0.14) 0%,rgba(255,255,255,0.12) 100%);
121 filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#24000000', endcolorstr='#1fffffff',gradienttype=1 );
122 }
123 .tags .inset {
124 color: rgba(0,0,0,0.5);
125 text-shadow: 0 1px 0 rgba(255,255,255,0.5);
126 }
127 /* === customs ==========
128 ================================================== */
129 .tags a, .tags a:before { background-color: #b7b7b7 }
130 .tags a, .tags a:after, .tags a:before { border-color: #777 }
131 .tags a.inset {
132 color: #454545; /* here you can override the default rgba(0,0,0,0.5); */
133 }
134 .tags .tag-red, .tags .tag-red:before { background-color: #f25c48 }
135 .tags .tag-red, .tags .tag-red:after, .tags .tag-red:before { border-color: #bc4738 }
136 .tags .tag-red.inset { color: #8a241e }
137 .tags .tag-blue, .tags .tag-blue:before { background-color: #0b9db7 }
138 .tags .tag-blue, .tags .tag-blue:after, .tags .tag-blue:before { border-color: #087184 }
139 .tags .tag-blue.inset { color: #054854 }
140 .tags .tag-orange, .tags .tag-orange:before { background-color: #f28f1a }
141 .tags .tag-orange, .tags .tag-orange:after, .tags .tag-orange:before { border-color: #bb6e14 }
142 .tags .tag-orange.inset { color: #7e4a0d }
143 .tags .tag-green, .tags .tag-green:before { background-color: #00a600 }
144 .tags .tag-green, .tags .tag-green:after, .tags .tag-green:before { border-color: #007500 }
145 .tags .tag-brown, .tags .tag-brown:before { background-color: #ae8f00 }
146 .tags .tag-brown, .tags .tag-brown:after, .tags .tag-brown:before { border-color: #5b4b00 }
147 .tags .tag-gray, .tags .tag-gray:before { background-color: #5b5b5b }
148 .tags .tag-gray, .tags .tag-gray:after, .tags .tag-gray:before { border-color: #272727 }
149 .tags .tag-puple, .tags .tag-puple:before { background-color: #6f00d2 }
150 .tags .tag-puple, .tags .tag-puple:after, .tags .tag-puple:before { border-color: #3a006f }
151 .tags .tag-fen, .tags .tag-fen:before { background-color: #ff00ff }
152 .tags .tag-fen, .tags .tag-fen:after, .tags .tag-fen:before { border-color: #460046 }
153 .tags .tag-danlan, .tags .tag-danlan:before { background-color: #5cadad }
154 .tags .tag-danlan, .tags .tag-danlan:after, .tags .tag-danlan:before { border-color: #3d7878 }
155 </style>
156 </head>
157 <body>
158 <div class="tags custom">
159 <a >默认</a>
160 
161 <a class="tag-blue">淡蓝色</a><a class="tag-blue inset">淡蓝色文字</a>
162 
163 <a class="tag-orange">橘黄色</a><a class="tag-orange inset">橘黄色文字</a>
164 
165 <a class="tag-red">暗红色</a><a class="tag-red inset">暗红色文字</a>
166 
167 <a class="tag-green">绿色</a>
168 
169 <a class="tag-brown">棕色</a>
170 
171 <a class="tag-gray">灰色</a>
172 
173 <a class="tag-puple">紫色</a>
174 
175 <a class="tag-fen">粉色</a>
176 
177 <a class="tag-danlan">淡蓝</a>
178 </div>​
179 </body>
180 </html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值