先看看实际效果图:
CSS Code拷贝內容到剪贴板
- <style>
-
- .dict { margin: 20px 0;clear:both ;text-align:left;font-size:12px;}
-
- .dict a { line-height: 24px; height: 24px; display: inline-block; background: #fff; padding: 3px 11px; margin: 10px 5px 0 0; border-radius: 8px; -moz-transition: all 0.5s; -webkit-transition: all 0.5s; -o-transition: all 0.5s; transition: all 0.5s; }
-
- .dict a { color: #FFF;text-decoration:none }
-
- .dict a:hover { border-radius: 0; text-shadow: #000 1px 1px 1px }
-
- .dict .pcolor a:nth-child(8n⑺) { background: #8A9B0F }
-
- .dict .pcolor a:nth-child(8n⑹) { background: #EB6841 }
-
- .dict .pcolor a:nth-child(8n⑸) { background: #3FB8AF }
-
- .dict .pcolor a:nth-child(8n⑷) { background: #FE4365 }
-
- .dict .pcolor a:nth-child(8n⑶) { background: #FC9D9A }
-
- .dict .pcolor a:nth-child(8n⑵) { background: #EDC951 }
-
- .dict .pcolor a:nth-child(8n⑴) { background: #C8C8A9 }
-
- .dict .pcolor a:nth-child(8n) { background: #83AF9B }
-
- .dict .pcolor a:first-child { background: #036564 }
-
- .dict .pcolor a:last-child { background: #3299BB }
-
- </style>
-
- <div class="dict">
-
- <p class="pcolor">
-
- <a href="#">html</a>
-
- <a href="#">css3</a>
-
- <a href="#">网站模板</a>
-
- <a href="#">本人blog模板</a>
-
- <a href="#">扁平化</a>
-
- <a href="#">div+css</a>
-
- <a href="#">bootstrap</a>
-
- <a href="#">公司模板</a>
-
- <a href="#">古典/文化艺术</a>
-
- <a href="#">婚纱拍摄</a>
-
- <a href="#">感情</a>
-
- <a href="#">jquery</a>
-
- </p>
-
- </div>
以上便是本文的所有內容,期待对大伙儿的学习培训有一定的协助,也期待大伙儿多多适用脚本制作之家。
原文连接:http://www.cnblogs.com/cssteach/archive/2016/06/16/5590375.html