好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css雪碧图的制作_html/css_WEB-ITnose

很多网站其实都用了雪碧图,确实方便了制作,以前以为这种小图标,都是一个一个图片呢(笑)

效果图如下:

代码如下:

                          h3,ul {margin: 0;padding: 0;}        ul{list-style: none;}        li h3{font-size: 14px;font-weight:400;font-family:"微软雅黑" }        li{            display: block;            height: 31px;            line-height: 31px;            overflow: hidden;            border-bottom: 1px solid #dedede;            margin: 1px 10px 0        }        li i{            display:inline;            background: url(sidebar.png);            width:30px;            height: 24px;            float: left;            margin:3px 10px 0 0 ;        }        .cat{            width: 150px;            background:#f8f8f8 ;            border: 1px solid #bbb;        }        .cat-1 i  {background-position: 0 0:}        .cat-2 i{background-position: 0 -24px;}        .cat-3 i{background-position: 0 -48px;}        .cat-4 i{background-position: 0 -72px;}        .cat-5 i{background-position: 0 -96px;}        .cat-6 i{background-position: 0 -120px;}        .cat-7 i{background-position: 0 -144px;}        .cat-8 i{background-position: 0 -168px;}       

服装内衣

鞋包配饰

运动户外

珠宝手表

手机数码

护肤彩妆

办公电脑

母婴用品

查看更多关于css雪碧图的制作_html/css_WEB-ITnose的详细内容...

  阅读:34次