当前位置:   article > 正文

36种漂亮的CSS3网页按钮Button样式 - 改进版_css 好看的button样式

css 好看的button样式

效果图

 

源代码

  1. <!DOCTYPE HTML>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>36种漂亮的CSS3网页按钮Button样式</title>
  6. <style type="text/css">
  7. body{
  8. background: #f5faff;
  9. }
  10. .demo_con{
  11. width: 960px;
  12. margin:40px auto 0;
  13. }
  14. .button{
  15. cursor: pointer;
  16. width: 140px;
  17. line-height: 38px;
  18. text-align: center;
  19. font-weight: bold;
  20. color: #fff;
  21. text-shadow:1px 1px 1px #333;
  22. border-radius: 5px;
  23. margin:0 20px 20px 0;
  24. position: relative;
  25. overflow: hidden;
  26. }
  27. .button:nth-child(6n){
  28. margin-right: 0;
  29. }
  30. .button.gray{
  31. color: #8c96a0;
  32. text-shadow:1px 1px 1px #fff;
  33. border:1px solid #dce1e6;
  34. box-shadow: 0 1px 2px #fff inset,0 -1px 0 #a8abae inset;
  35. background: -webkit-linear-gradient(top,#f2f3f7,#e4e8ec);
  36. background: -moz-linear-gradient(top,#f2f3f7,#e4e8ec);
  37. background: linear-gradient(top,#f2f3f7,#e4e8ec);
  38. }
  39. .button.black{
  40. border:1px solid #333;
  41. box-shadow: 0 1px 2px #8b8b8b inset,0 -1px 0 #3d3d3d inset,0 -2px 3px #8b8b8b inset;
  42. background: -webkit-linear-gradient(top,#656565,#4c4c4c);
  43. background: -moz-linear-gradient(top,#656565,#4a4a4a);
  44. background: linear-gradient(top,#656565,#4a4a4a);
  45. }
  46. .button.red{
  47. border:1px solid #b42323;
  48. box-shadow: 0 1px 2px #e99494 inset,0 -1px 0 #954b4b inset,0 -2px 3px #e99494 inset;
  49. background: -webkit-linear-gradient(top,#d53939,#b92929);
  50. background: -moz-linear-gradient(top,#d53939,#b92929);
  51. background: linear-gradient(top,#d53939,#b92929);
  52. }
  53. .button.yellow{
  54. border:1px solid #d2a000;
  55. box-shadow: 0 1px 2px #fedd71 inset,0 -1px 0 #a38b39 inset,0 -2px 3px #fedd71 inset;
  56. background: -webkit-linear-gradient(top,#fece34,#d8a605);
  57. background: -moz-linear-gradient(top,#fece34,#d8a605);
  58. background: linear-gradient(top,#fece34,#d8a605);
  59. }
  60. .button.green{
  61. border:1px solid #64c878;
  62. box-shadow: 0 1px 2px #b9ecc4 inset,0 -1px 0 #6c9f76 inset,0 -2px 3px #b9ecc4 inset;
  63. background: -webkit-linear-gradient(top,#90dfa2,#84d494);
  64. background: -moz-linear-gradient(top,#90dfa2,#84d494);
  65. background: linear-gradient(top,#90dfa2,#84d494);
  66. }
  67. .button.blue{
  68. border:1px solid #1e7db9;
  69. box-shadow: 0 1px 2px #8fcaee inset,0 -1px 0 #497897 inset,0 -2px 3px #8fcaee inset;
  70. background: -webkit-linear-gradient(top,#42a4e0,#2e88c0);
  71. background: -moz-linear-gradient(top,#42a4e0,#2e88c0);
  72. background: linear-gradient(top,#42a4e0,#2e88c0);
  73. }
  74. .round,
  75. .side,
  76. .tags{
  77. padding-right: 30px;
  78. }
  79. .round:after{
  80. position: absolute;
  81. display: inline-block;
  82. content: "\003c";
  83. top:50%;
  84. right:10px;
  85. margin-top: -10px;
  86. width: 17px;
  87. height: 20px;
  88. padding-left: 3px;
  89. line-height:18px;
  90. font-size: 10px;
  91. font-weight: normal;
  92. border-radius: 10px;
  93. text-shadow:-2px 0 1px #333;
  94. -webkit-transform:rotate(-90deg);
  95. -moz-transform:rotate(-90deg);
  96. transform:rotate(-90deg);
  97. }
  98. .gray.round:after{
  99. box-shadow:1px 0 1px rgba(255,255,255,1) inset,1px 0 1px rgba(0,0,0,.2);
  100. background:-webkit-linear-gradient(top,#dce1e6,#dde2e7);
  101. background:-moz-linear-gradient(top,#dce1e6,#dde2e7);
  102. background:linear-gradient(top,#dce1e6,#dde2e7);
  103. text-shadow:-2px 0 1px #fff;
  104. }
  105. .black.round:after{
  106. box-shadow:1px 0 1px rgba(255,255,255,.5) inset,1px 0 1px rgba(0,0,0,.9);
  107. background:-webkit-linear-gradient(top,#333,#454545);
  108. background:-moz-linear-gradient(top,#333,#454545);
  109. background:linear-gradient(top,#333,#454545);
  110. }
  111. .red.round:after{
  112. box-shadow:1px 0 1px rgba(255,255,255,.6) inset,1px 0 1px rgba(130,25,25,.9);
  113. background:-webkit-linear-gradient(top,#b12222,#b42323);
  114. background:-moz-linear-gradient(top,#b12222,#b42323);
  115. background:linear-gradient(top,#b12222,#b42323);
  116. }
  117. .yellow.round:after{
  118. box-shadow:1px 0 1px rgba(255,255,255,.8) inset,1px 0 1px rgba(148,131,4,.9);
  119. background:-webkit-linear-gradient(top,#cf9d00,#d2a000);
  120. background:-moz-linear-gradient(top,#cf9d00,#d2a000);
  121. background:linear-gradient(top,#cf9d00,#d2a000);
  122. }
  123. .green.round:after{
  124. box-shadow:1px 0 1px rgba(255,255,255,.8) inset,1px 0 1px rgba(51,126,66,.9);
  125. background:-webkit-linear-gradient(top,#64c878,#6dcb80);
  126. background:-moz-linear-gradient(top,#64c878,#6dcb80);
  127. background:linear-gradient(top,#64c878,#6dcb80);
  128. }
  129. .blue.round:after{
  130. box-shadow:1px 0 1px rgba(255,255,255,.8) inset,1px 0 1px rgba(18,85,128,.9);
  131. background:-webkit-linear-gradient(top,#1e7db9,#2b85bd);
  132. background:-moz-linear-gradient(top,#1e7db9,#2b85bd);
  133. background:linear-gradient(top,#1e7db9,#2b85bd);
  134. }
  135. .side:after{
  136. position: absolute;
  137. display: inline-block;
  138. content: "\00bb";
  139. top:3px;
  140. right:-4px;
  141. width: 38px;
  142. height:30px;
  143. font-weight: normal;
  144. line-height: 26px;
  145. border-radius:0 0 5px 5px;
  146. text-shadow:-2px 0 1px #333;
  147. -webkit-transform:rotate(-90deg);
  148. -moz-transform:rotate(-90deg);
  149. transform:rotate(-90deg);
  150. }
  151. .gray.side:after{
  152. text-shadow:-2px 0 1px #fff;
  153. border-top: 1px solid #d4d4d4;
  154. box-shadow:-2px 0 1px #eceef1 inset;
  155. background:-webkit-linear-gradient(right,#e1e6ea,#f2f2f6 60%);
  156. background:-moz-linear-gradient(right,#e1e6ea,#f2f2f6 60%);
  157. background:linear-gradient(right,#e1e6ea,#f2f2f6 60%);
  158. }
  159. .black.side:after{
  160. border-top: 1px solid #222;
  161. box-shadow:-2px 0 1px #606060 inset;
  162. background:-webkit-linear-gradient(right,#373737,#555 60%);
  163. background:-moz-linear-gradient(right,#373737,#555 60%);
  164. background:linear-gradient(right,#373737,#555 60%);
  165. }
  166. .red.side:after{
  167. border-top: 1px solid #aa1e1e;
  168. box-shadow:-2px 0 1px #c75959 inset;
  169. background:-webkit-linear-gradient(right,#b82929,#d73f3f 60%);
  170. background:-moz-linear-gradient(top,#b82929,#d73f3f 60%);
  171. background:linear-gradient(top,#b82929,#d73f3f 60%);
  172. }
  173. .yellow.side:after{
  174. border-top: 1px solid #ba8f06;
  175. box-shadow:-2px 0 1px #deb842 inset;
  176. background:-webkit-linear-gradient(right,#d5a406,#fdc40b 60%);
  177. background:-moz-linear-gradient(right,#d5a406,#fdc40b 60%);
  178. background:linear-gradient(right,#d5a406,#fdc40b 60%);
  179. }
  180. .green.side:after{
  181. border-top: 1px solid #53b567;
  182. box-shadow:-2px 0 1px #8ad599 inset;
  183. background:-webkit-linear-gradient(right,#69ca7c,#91e5a5 60%);
  184. background:-moz-linear-gradient(right,#69ca7c,#91e5a5 60%);
  185. background:linear-gradient(right,#69ca7c,#91e5a5 60%);
  186. }
  187. .blue.side:after{
  188. border-top: 1px solid #1971a8;
  189. box-shadow:-2px 0 1px #559dca inset;
  190. background:-webkit-linear-gradient(right,#2482bd,#3fa2e0 60%);
  191. background:-moz-linear-gradient(right,#2482bd,#3fa2e0 60%);
  192. background:linear-gradient(right,#2482bd,#3fa2e0 60%);
  193. }
  194. .tags:after{
  195. font-weight: normal;
  196. position: absolute;
  197. display: inline-block;
  198. content: "FREE";
  199. top:-3px;
  200. right: -33px;
  201. color: #fff;
  202. text-shadow:none;
  203. width: 85px;
  204. height:25px;
  205. line-height: 28px;
  206. -webkit-transform:rotate(45deg) scale(.7,.7);
  207. -moz-transform:rotate(45deg) scale(.7,.7);
  208. transform:rotate(45deg) scale(.7,.7);
  209. }
  210. .gray.tags:after{
  211. background: #8c96a0;
  212. border:2px solid #fff;
  213. }
  214. .black.tags:after{
  215. background: #333;
  216. border:2px solid #777;
  217. }
  218. .red.tags:after{
  219. background: #b42323;
  220. border:2px solid #df4141;
  221. }
  222. .yellow.tags:after{
  223. background: #d2a000;
  224. border:2px solid #fcc100;
  225. }
  226. .green.tags:after{
  227. background: #64c878;
  228. border:2px solid #9bebac;
  229. }
  230. .blue.tags:after{
  231. background: #1e7db9;
  232. border:2px solid #54b1e9;
  233. }
  234. .button.rarrow,
  235. .button.larrow{
  236. overflow:visible;
  237. }
  238. .rarrow:after,
  239. .rarrow:before,
  240. .larrow:after,
  241. .larrow:before{
  242. position:absolute;
  243. content: "";
  244. display: block;
  245. width: 28px;
  246. height: 28px;
  247. -webkit-transform:rotate(45deg);
  248. -moz-transform:rotate(45deg);
  249. transform:rotate(45deg);
  250. }
  251. .rarrow:before{
  252. width: 27px;
  253. height: 27px;
  254. top: 6px;
  255. right: -13px;
  256. clip: rect(auto auto 26px 2px);
  257. }
  258. .rarrow:after{
  259. top: 6px;
  260. right: -12px;
  261. clip: rect(auto auto 26px 2px);
  262. }
  263. .gray.rarrow:before{
  264. background: #d6dbe0;
  265. }
  266. .gray.rarrow:after{
  267. box-shadow: 0 1px 0 #fff inset,-1px 0 0 #b7babd inset;
  268. background:-webkit-linear-gradient(top left,#f2f3f7,#e4e8ec);
  269. background:-moz-linear-gradient(top left,#f2f3f7,#e4e8ec);
  270. background:linear-gradient(top left,#f2f3f7,#e4e8ec);
  271. }
  272. .black.rarrow:before{
  273. background: #333;
  274. }
  275. .black.rarrow:after{
  276. box-shadow: 0 1px 0 #8B8B8B inset,-1px 0 0 #3d3d3d inset,-2px 0 0 #8B8B8B inset;
  277. background:-webkit-linear-gradient(top left,#656565,#4C4C4C);
  278. background:-moz-linear-gradient(top left,#656565,#4C4C4C);
  279. background:linear-gradient(top left,#656565,#4C4C4C);
  280. }
  281. .red.rarrow:before{
  282. background: #B42323;
  283. }
  284. .red.rarrow:after{
  285. box-shadow: 0 1px 0 #E99494 inset,-1px 0 0 #954B4B inset,-2px 0 0 #E99494 inset;
  286. background:-webkit-linear-gradient(top left,#D53939,#B92929);
  287. background:-moz-linear-gradient(top left,#D53939,#B92929);
  288. background:linear-gradient(top left,#D53939,#B92929);
  289. }
  290. .yellow.rarrow:before{
  291. background: #D2A000;
  292. }
  293. .yellow.rarrow:after{
  294. box-shadow: 0 1px 0 #FEDD71 inset,-1px 0 0 #A38B39 inset,-2px 0 0 #FEDD71 inset;
  295. background:-webkit-linear-gradient(top left,#FECE34,#D8A605);
  296. background:-moz-linear-gradient(top left,#FECE34,#D8A605);
  297. background:linear-gradient(top left,#FECE34,#D8A605);
  298. }
  299. .green.rarrow:before{
  300. background: #64C878;
  301. }
  302. .green.rarrow:after{
  303. box-shadow: 0 1px 0 #B9ECC4 inset,-1px 0 0 #6C9F76 inset,-2px 0 0 #B9ECC4 inset;
  304. background:-webkit-linear-gradient(top left,#90DFA2,#84D494);
  305. background:-moz-linear-gradient(top left,#90DFA2,#84D494);
  306. background:linear-gradient(top left,#90DFA2,#84D494);
  307. }
  308. .blue.rarrow:before{
  309. background: #1E7DB9;
  310. }
  311. .blue.rarrow:after{
  312. box-shadow: 0 1px 0 #8FCAEE inset,-1px 0 0 #497897 inset,-2px 0 0 #8FCAEE inset;
  313. background:-webkit-linear-gradient(top left,#42A4E0,#2E88C0);
  314. background:-moz-linear-gradient(top left,#42A4E0,#2E88C0);
  315. background:linear-gradient(top left,#42A4E0,#2E88C0);
  316. }
  317. .larrow:before{
  318. top: 6px;
  319. left: -13px;
  320. width: 27px;
  321. height: 27px;
  322. clip: rect(2px 26px auto auto);
  323. }
  324. .larrow:after{
  325. top: 6px;
  326. left: -12px;
  327. clip: rect(2px 26px auto auto);
  328. }
  329. .gray.larrow:before{
  330. background: #d6dbe0;
  331. }
  332. .gray.larrow:after{
  333. box-shadow: 0 -1px 0 #b7babd inset,1px 0 0 #fff inset;
  334. background:-webkit-linear-gradient(top left,#f2f3f7,#e4e8ec);
  335. background:-moz-linear-gradient(top left,#f2f3f7,#e4e8ec);
  336. background:linear-gradient(top left,#f2f3f7,#e4e8ec);
  337. }
  338. .black.larrow:before{
  339. background: #333;
  340. }
  341. .black.larrow:after{
  342. box-shadow: 0 -1px 0 #3d3d3d inset,0 -2px 0 #8B8B8B inset,1px 0 0 #8B8B8B inset;
  343. background:-webkit-linear-gradient(top left,#656565,#4C4C4C);
  344. background:-moz-linear-gradient(top left,#656565,#4C4C4C);
  345. background:linear-gradient(top left,#656565,#4C4C4C);
  346. }
  347. .red.larrow:before{
  348. background: #B42323;
  349. }
  350. .red.larrow:after{
  351. box-shadow: 0 -1px 0 #954B4B inset,0 -2px 0 #E99494 inset,1px 0 0 #E99494 inset;
  352. background:-webkit-linear-gradient(top left,#D53939,#B92929);
  353. background:-moz-linear-gradient(top left,#D53939,#B92929);
  354. background:linear-gradient(top left,#D53939,#B92929);
  355. }
  356. .yellow.larrow:before{
  357. background: #D2A000;
  358. }
  359. .yellow.larrow:after{
  360. box-shadow: 0 -1px 0 #A38B39 inset,0 -2px 0 #FEDD71 inset,1px 0 0 #FEDD71 inset;
  361. background:-webkit-linear-gradient(top left,#FECE34,#D8A605);
  362. background:-moz-linear-gradient(top left,#FECE34,#D8A605);
  363. background:linear-gradient(top left,#FECE34,#D8A605);
  364. }
  365. .green.larrow:before{
  366. background: #64C878;
  367. }
  368. .green.larrow:after{
  369. box-shadow: 0 -1px 0 #6C9F76 inset,0 -2px 0 #B9ECC4 inset,1px 0 0 #B9ECC4 inset;
  370. background:-webkit-linear-gradient(top left,#90DFA2,#84D494);
  371. background:-moz-linear-gradient(top left,#90DFA2,#84D494);
  372. background:linear-gradient(top left,#90DFA2,#84D494);
  373. }
  374. .blue.larrow:before{
  375. background: #1E7DB9;
  376. }
  377. .blue.larrow:after{
  378. box-shadow: 0 -1px 0 #497897 inset,0 -2px 0 #8FCAEE inset,1px 0 0 #8FCAEE inset;
  379. background:-webkit-linear-gradient(top left,#42A4E0,#2E88C0);
  380. background:-moz-linear-gradient(top left,#42A4E0,#2E88C0);
  381. background:linear-gradient(top left,#42A4E0,#2E88C0);
  382. }
  383. .gray:hover{
  384. background: -webkit-linear-gradient(top,#fefefe,#ebeced);
  385. background: -moz-linear-gradient(top,#f2f3f7,#ebeced);
  386. background: linear-gradient(top,#f2f3f7,#ebeced);
  387. }
  388. .black:hover{
  389. background: -webkit-linear-gradient(top,#818181,#575757);
  390. background: -moz-linear-gradient(top,#818181,#575757);
  391. background: linear-gradient(top,#818181,#575757);
  392. }
  393. .red:hover{
  394. background: -webkit-linear-gradient(top,#eb6f6f,#c83c3c);
  395. background: -moz-linear-gradient(top,#eb6f6f,#c83c3c);
  396. background: linear-gradient(top,#eb6f6f,#c83c3c);
  397. }
  398. .yellow:hover{
  399. background: -webkit-linear-gradient(top,#ffd859,#e3bb38);
  400. background: -moz-linear-gradient(top,#ffd859,#e3bb38);
  401. background: linear-gradient(top,#ffd859,#e3bb38);
  402. }
  403. .green:hover{
  404. background: -webkit-linear-gradient(top,#aaebb9,#82d392);
  405. background: -moz-linear-gradient(top,#aaebb9,#82d392);
  406. background: linear-gradient(top,#aaebb9,#82d392);
  407. }
  408. .blue:hover{
  409. background: -webkit-linear-gradient(top,#70bfef,#4097ce);
  410. background: -moz-linear-gradient(top,#70bfef,#4097ce);
  411. background: linear-gradient(top,#70bfef,#4097ce);
  412. }
  413. .gray:active{
  414. top:1px;
  415. box-shadow: 0 1px 3px #a8abae inset,0 3px 0 #fff;
  416. background: -webkit-linear-gradient(top,#e4e8ec,#e4e8ec);
  417. background: -moz-linear-gradient(top,#e4e8ec,#e4e8ec);
  418. background: linear-gradient(top,#e4e8ec,#e4e8ec);
  419. }
  420. .black:active{
  421. top:1px;
  422. box-shadow: 0 1px 3px #111 inset,0 3px 0 #fff;
  423. background: -webkit-linear-gradient(top,#424242,#575757);
  424. background: -moz-linear-gradient(top,#424242,#575757);
  425. background: linear-gradient(top,#424242,#575757);
  426. }
  427. .red:active{
  428. top:1px;
  429. box-shadow: 0 1px 3px #5b0505 inset,0 3px 0 #fff;
  430. background: -webkit-linear-gradient(top,#b11a1a,#bf2626);
  431. background: -moz-linear-gradient(top,#b11a1a,#bf2626);
  432. background: linear-gradient(top,#b11a1a,#bf2626);
  433. }
  434. .yellow:active{
  435. top:1px;
  436. box-shadow: 0 1px 3px #816b1f inset,0 3px 0 #fff;
  437. background: -webkit-linear-gradient(top,#d3a203,#dba907);
  438. background: -moz-linear-gradient(top,#d3a203,#dba907);
  439. background: linear-gradient(top,#d3a203,#dba907);
  440. }
  441. .green:active{
  442. top:1px;
  443. box-shadow: 0 1px 3px #4d7254 inset,0 3px 0 #fff;
  444. background: -webkit-linear-gradient(top,#5eac6e,#72b37e);
  445. background: -moz-linear-gradient(top,#5eac6e,#72b37e);
  446. background: linear-gradient(top,#5eac6e,#72b37e);
  447. }
  448. .blue:active{
  449. top:1px;
  450. box-shadow: 0 1px 3px #114566 inset,0 3px 0 #fff;
  451. background: -webkit-linear-gradient(top,#1a71a8,#1976b1);
  452. background: -moz-linear-gradient(top,#1a71a8,#1976b1);
  453. background: linear-gradient(top,#1a71a8,#1976b1);
  454. }
  455. .gray.side:hover:after{
  456. background:-webkit-linear-gradient(right,#e7ebee,#f8f8f8 60%);
  457. background:-moz-linear-gradient(right,#e7ebee,#f8f8f8 60%);
  458. background:linear-gradient(right,#e7ebee,#f8f8f8 60%);
  459. }
  460. .black.side:hover:after{
  461. background:-webkit-linear-gradient(right,#555,#6f6f6f 60%);
  462. background:-moz-linear-gradient(right,#555,#6f6f6f 60%);
  463. background:linear-gradient(right,#555,#6f6f6f 60%);
  464. }
  465. .red.side:hover:after{
  466. background:-webkit-linear-gradient(right,#c43333,#dc4949 60%);
  467. background:-moz-linear-gradient(right,#c43333,#dc4949 60%);
  468. background:linear-gradient(right,#c43333,#dc4949 60%);
  469. }
  470. .yellow.side:hover:after{
  471. background:-webkit-linear-gradient(right,#e1b21a,#fbc71d 60%);
  472. background:-moz-linear-gradient(right,#e1b21a,#fbc71d 60%);
  473. background:linear-gradient(right,#e1b21a,#fbc71d 60%);
  474. }
  475. .green.side:hover:after{
  476. background:-webkit-linear-gradient(right,#85da95,#94e0a5 60%);
  477. background:-moz-linear-gradient(right,#85da95,#94e0a5 60%);
  478. background:linear-gradient(right,#85da95,#94e0a5 60%);
  479. }
  480. .blue.side:hover:after{
  481. background:-webkit-linear-gradient(right,#338fc8,#56b2eb 60%);
  482. background:-moz-linear-gradient(right,#338fc8,#56b2eb 60%);
  483. background:linear-gradient(right,#338fc8,#56b2eb 60%);
  484. }
  485. .gray.side:active:after{
  486. top:4px;
  487. border-top: 1px solid #9fa6ab;
  488. box-shadow:-1px 0 1px #a8abae inset;
  489. background:-webkit-linear-gradient(right,#e4e8ec,#e4e8ec 60%);
  490. background:-moz-linear-gradient(right,#e4e8ec,#e4e8ec 60%);
  491. background:linear-gradient(right,#e4e8ec,#e4e8ec 60%);
  492. }
  493. .black.side:active:after{
  494. box-shadow:-1px 0 1px #111 inset;
  495. background:-webkit-linear-gradient(right,#414040,#4d4c4c 60%);
  496. background:-moz-linear-gradient(right,#414040,#4d4c4c 60%);
  497. background:linear-gradient(right,#414040,#4d4c4c 60%);
  498. }
  499. .red.side:active:after{
  500. box-shadow:-1px 0 1px #4b0707 inset;
  501. background:-webkit-linear-gradient(right,#b11a1a,#b11a1a 60%);
  502. background:-moz-linear-gradient(right,#b11a1a,#b11a1a 60%);
  503. background:linear-gradient(right,#b11a1a,#b11a1a 60%);
  504. }
  505. .yellow.side:active:after{
  506. box-shadow:-1px 0 1px #816b1f inset;
  507. background:-webkit-linear-gradient(right,#d3a203,#dba907 60%);
  508. background:-moz-linear-gradient(right,#d3a203,#dba907 60%);
  509. background:linear-gradient(right,#d3a203,#dba907 60%);
  510. }
  511. .green.side:active:after{
  512. box-shadow:-1px 0 1px #33663d inset;
  513. background:-webkit-linear-gradient(right,#63a870,#72b37e 60%);
  514. background:-moz-linear-gradient(right,#63a870,#72b37e 60%);
  515. background:linear-gradient(right,#63a870,#72b37e 60%);
  516. }
  517. .blue.side:active:after{
  518. box-shadow:-1px 0 1px #114566 inset;
  519. background:-webkit-linear-gradient(right,#1a71a8,#1976b1 60%);
  520. background:-moz-linear-gradient(right,#1a71a8,#1976b1 60%);
  521. background:linear-gradient(right,#1a71a8,#1976b1 60%);
  522. }
  523. .gray.rarrow:hover:after,
  524. .gray.rarrow:hover:after{
  525. background:-webkit-linear-gradient(top left,#fefefe,#ebeced);
  526. background:-moz-linear-gradient(top left,#fefefe,#ebeced);
  527. background:linear-gradient(top left,#fefefe,#ebeced);
  528. }
  529. .black.rarrow:hover:after,
  530. .black.larrow:hover:after{
  531. background:-webkit-linear-gradient(top left,#818181,#575757);
  532. background:-moz-linear-gradient(top left,#818181,#575757);
  533. background:linear-gradient(top left,#818181,#575757);
  534. }
  535. .red.rarrow:hover:after,
  536. .red.larrow:hover:after{
  537. background:-webkit-linear-gradient(top left,#eb6f6f,#c83c3c);
  538. background:-moz-linear-gradient(top left,#eb6f6f,#c83c3c);
  539. background:linear-gradient(top left,#eb6f6f,#c83c3c);
  540. }
  541. .yellow.rarrow:hover:after,
  542. .yellow.larrow:hover:after{
  543. background:-webkit-linear-gradient(top left,#ffd859,#e3bb38);
  544. background:-moz-linear-gradient(top left,#ffd859,#e3bb38);
  545. background:linear-gradient(top left,#ffd859,#e3bb38);
  546. }
  547. .green.rarrow:hover:after,
  548. .green.larrow:hover:after{
  549. background:-webkit-linear-gradient(top left,#aaebb9,#82d392);
  550. background:-moz-linear-gradient(top left,#aaebb9,#82d392);
  551. background:linear-gradient(top left,#aaebb9,#82d392);
  552. }
  553. .blue.rarrow:hover:after,
  554. .blue.larrow:hover:after{
  555. background:-webkit-linear-gradient(top left,#70bfef,#4097ce);
  556. background:-moz-linear-gradient(top left,#70bfef,#4097ce);
  557. background:linear-gradient(top left,#70bfef,#4097ce);
  558. }
  559. .gray.rarrow:active:after,
  560. .gray.larrow:active:after{
  561. background:-webkit-linear-gradient(top left,#e4e8ec,#e4e8ec);
  562. background:-moz-linear-gradient(top left,#e4e8ec,#e4e8ec);
  563. background:linear-gradient(top left,#e4e8ec,#e4e8ec);
  564. }
  565. .black.rarrow:active:after,
  566. .black.larrow:active:after{
  567. background:-webkit-linear-gradient(top left,#424242,#575757);
  568. background:-moz-linear-gradient(top left,#424242,#575757);
  569. background:linear-gradient(top left,#424242,#575757);
  570. }
  571. .red.rarrow:active:after,
  572. .red.larrow:active:after{
  573. background:-webkit-linear-gradient(top left,#b11a1a,#bf2626);
  574. background:-moz-linear-gradient(top left,#b11a1a,#bf2626);
  575. background:linear-gradient(top left,#b11a1a,#bf2626);
  576. }
  577. .yellow.rarrow:active:after,
  578. .yellow.larrow:active:after{
  579. background:-webkit-linear-gradient(top left,#d3a203,#dba907);
  580. background:-moz-linear-gradient(top left,#d3a203,#dba907);
  581. background:linear-gradient(top left,#d3a203,#dba907);
  582. }
  583. .green.rarrow:active:after,
  584. .green.larrow:active:after{
  585. background:-webkit-linear-gradient(top left,#63a870,#72b37e);
  586. background:-moz-linear-gradient(top left,#63a870,#72b37e);
  587. background:linear-gradient(top left,#63a870,#72b37e);
  588. }
  589. .blue.rarrow:active:after,
  590. .blue.larrow:active:after{
  591. background:-webkit-linear-gradient(top left,#1a71a8,#1976b1);
  592. background:-moz-linear-gradient(top left,#1a71a8,#1976b1);
  593. background:linear-gradient(top left,#1a71a8,#1976b1);
  594. }
  595. .gray.rarrow:active:after{
  596. box-shadow: 0 1px 0 #b7babd inset,-1px 0 0 #b7babd inset;
  597. }
  598. .gray.larrow:active:after{
  599. box-shadow: 0 -1px 0 #b7babd inset,1px 0 0 #b7babd inset;
  600. }
  601. .black.rarrow:active:after{
  602. box-shadow: 0 1px 0 #333 inset,-1px 0 0 #333 inset;
  603. }
  604. .black.larrow:active:after{
  605. box-shadow: 0 -1px 0 #333 inset,1px 0 0 #333 inset;
  606. }
  607. .red.rarrow:active:after{
  608. box-shadow: 0 1px 0 #640909 inset,-1px 0 0 #640909 inset;
  609. }
  610. .red.larrow:active:after{
  611. box-shadow: 0 -1px 0 #640909 inset,1px 0 0 #640909 inset;
  612. }
  613. .yellow.rarrow:active:after{
  614. box-shadow: 0 1px 0 #816b1f inset,-1px 0 0 #816b1f inset;
  615. }
  616. .yellow.larrow:active:after{
  617. box-shadow: 0 -1px 0 #816b1f inset,1px 0 0 #816b1f inset;
  618. }
  619. .green.rarrow:active:after{
  620. box-shadow: 0 1px 0 #4d7254 inset,-1px 0 0 #4d7254 inset;
  621. }
  622. .green.larrow:active:after{
  623. box-shadow: 0 -1px 0 #4d7254 inset,1px 0 0 #4d7254 inset;
  624. }
  625. .blue.rarrow:active:after{
  626. box-shadow: 0 1px 0 #114566 inset,-1px 0 0 #114566 inset;
  627. }
  628. .blue.larrow:active:after{
  629. box-shadow: 0 -1px 0 #114566 inset,1px 0 0 #114566 inset;
  630. }
  631. </style>
  632. </head>
  633. <body>
  634. <div class="page">
  635. <header id="header">
  636. <hgrounp class="white blank">
  637. <h1 style="text-align: center;">36 Web Buttons Collection</h1>
  638. </hgrounp>
  639. </header>
  640. <section class="demo">
  641. <div class="demo_con">
  642. <button type="button" class="button gray">BUY NOW</button>
  643. <button type="button" class="button black">BUY NOW</button>
  644. <button type="button" class="button red">BUY NOW</button>
  645. <button type="button" class="button yellow">BUY NOW</button>
  646. <button type="button" class="button green">BUY NOW</button>
  647. <button type="button" class="button blue">BUY NOW</button>
  648. <button type="button" class="button gray round">DOWNLOAD</button>
  649. <button type="button" class="button black round">DOWNLOAD</button>
  650. <button type="button" class="button red round">DOWNLOAD</button>
  651. <button type="button" class="button yellow round">DOWNLOAD</button>
  652. <button type="button" class="button green round">DOWNLOAD</button>
  653. <button type="button" class="button blue round">DOWNLOAD</button>
  654. <button type="button" class="button gray side">DOWNLOAD</button>
  655. <button type="button" class="button black side">DOWNLOAD</button>
  656. <button type="button" class="button red side">DOWNLOAD</button>
  657. <button type="button" class="button yellow side">DOWNLOAD</button>
  658. <button type="button" class="button green side">DOWNLOAD</button>
  659. <button type="button" class="button blue side">DOWNLOAD</button>
  660. <button type="button" class="button gray tags">SIGN UP</button>
  661. <button type="button" class="button black tags">SIGN UP</button>
  662. <button type="button" class="button red tags">SIGN UP</button>
  663. <button type="button" class="button yellow tags">SIGN UP</button>
  664. <button type="button" class="button green tags">SIGN UP</button>
  665. <button type="button" class="button blue tags">SIGN UP</button>
  666. <button type="button" class="button gray rarrow">LEARN MORE</button>
  667. <button type="button" class="button black rarrow">LEARN MORE</button>
  668. <button type="button" class="button red rarrow">LEARN MORE</button>
  669. <button type="button" class="button yellow rarrow">LEARN MORE</button>
  670. <button type="button" class="button green rarrow">LEARN MORE</button>
  671. <button type="button" class="button blue rarrow">LEARN MORE</button>
  672. <button type="button" class="button gray larrow">GO BACK</button>
  673. <button type="button" class="button black larrow">GO BACK</button>
  674. <button type="button" class="button red larrow">GO BACK</button>
  675. <button type="button" class="button yellow larrow">GO BACK</button>
  676. <button type="button" class="button green larrow">GO BACK</button>
  677. <button type="button" class="button blue larrow">GO BACK</button>
  678. </div>
  679. </section>
  680. </div>
  681. </body>
  682. </html>

 

转自 作者 藤藤

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/302570
推荐阅读
相关标签
  

闽ICP备14008679号