建站软件 优化软件 编程软件 网页辅助 站群程序 网站程序 图像处理 资源教程 字体下载 推荐软件


您的位置:首页 > div+css > css实现多彩标签云

css实现多彩标签云

时间:2017-07-04 11:36:47  来源:免费模板网 作者:风雪 阅读次数 tagscss标签云

经常看到别人一些网站标签云,视觉效果觉得不错,怎么实现呢?效果如下

c11.jpg

代码如下,可以根据你的实际情况修改栏目名称和添加背景颜色

<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-7) { background: #8A9B0F }
.dict .pcolor a:nth-child(8n-6) { background: #EB6841 }
.dict .pcolor a:nth-child(8n-5) { background: #3FB8AF }
.dict .pcolor a:nth-child(8n-4) { background: #FE4365 }
.dict .pcolor a:nth-child(8n-3) { background: #FC9D9A }
.dict .pcolor a:nth-child(8n-2) { background: #EDC951 }
.dict .pcolor a:nth-child(8n-1) { 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="#">个人博客模版</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>


本文地址:https://www.freemoban.com/bjrm/2017/0704/2832.html

猜你喜欢
栏目推荐
模板推荐

Copyright:www.freemoban.com 免费模板网 All Rights Reserved 网站备案:辽ICP备19014872号-2   辽公网安备 21010602000376号  辽公网安备:42900402000182号

免责声明:本站部分资源来自互联网收集,版权归原创者所有,如果侵犯了你的权益,我们会及时删除侵权内容,联系QQ:1615187561 谢谢合作!