首页 试题广场 > 试题详情
编程题

【C021079】请简化以下的CSS代码,并给出简单的说明。
div.container {
width: 500px;
background-image: url(/img/sprite.png);
background-repeat: no-repeat;
background-position: 0px -78px;
}
div.container ul#news-list, div.container ul#news-list li {
margin: 0px;
padding: 0px;
}
div.container ul#news-list li {
padding-left: 20px;
background-image: url(/img/sprite.png);
background-repeat: no-repeat;
background-position: -120px 0px;
}
a {
font-size: 14px;
font-weight:bold;
line-height: 150%;
color: #000000;
}

回复可见正确答案
下一题 上一题
Ke星伙伴们的回答/ 38个回答 添加答案
  • 梦霜 1楼

    D
    发表时间:2016-08-13 00:05:18 评论 2

  • 梦霜 2楼

    B
    发表时间:2016-08-13 00:05:32 评论 2

  • 子不语4 3楼

    e
    发表时间:2016-08-17 00:46:11 评论 2

  • 我爱学习 学习爱我 4楼

    发表时间:2016-08-13 00:47:55 评论 1

  • 萧萧疏雨坠 5楼

    div.container { width: 500px; background: url(/img/sprite.png) no-repeat 0px -78px;}
    *{ margin: 0px; padding: 0px;}
    div.container ul#news-list li { padding-left: 20px;  background-image: url(/img/sprite.png) no-repeat -120px 0px;}

    a {  font: 14px bold #000000  line-height: 150%;}

    发表时间:2016-08-15 11:34:44 评论 1

  • 西镜丶东瓶 6楼

    div.container {


        width: 500px;


        background-image: url(/img/sprite.png) no-repeat 0 -78px;


    }


    div.container ul#news-list,li {


        margin: 0px;


        padding: 0px;


    }


    div.container ul#news-list li {


        padding-left: 20px;


        background-image: url(/img/sprite.png) no-repeat -120px 0;


    }

    a {


        font: 14px/150% bold #000;


    }


    发表时间:2016-08-16 14:56:48 评论 1

  • 陌落 7楼

    m
    发表时间:2016-08-16 16:35:10 评论 1

  • 慢性毒药 8楼

     div.container{
     width:500px;
     background:url(/img/sprite.png) no-repeat 0 -78px;
     }
    div.container ul#news-list, div.container ul#news-list li{margin:0;padding:0;}
    div.container ul#news-list li{
     padding-left:20px;
     background:url(/img/sprite.png) no-repeat -120px 0px;
     }
    a{
     font:14px bold;
     line-height:150%;
     color:#000;
     }

    发表时间:2016-08-17 12:27:53 评论 1

  • zhuyanfang 9楼

    .container{ background-image:url(/img/sprite.png) width:500px; no-repeat; position:0 78px; }
    发表时间:2016-11-10 20:13:12 评论 1

  • 哈喽喂 10楼

    我看下答案
    发表时间:2016-08-22 13:03:33 评论 0

  • 老黑PHP 11楼

    1
    发表时间:2016-08-22 20:46:19 评论 0

  • Babystar0905 12楼

    div.container ul#news-list li

    发表时间:2016-08-23 14:26:11 评论 0

  • 思量 13楼

    .
    发表时间:2016-08-26 09:25:24 评论 0

  • 鬼谷子钢 14楼

    A
    发表时间:2016-08-27 00:02:08 评论 0

  • 不是我发烧 15楼

    发表时间:2016-08-27 10:01:20 评论 0

关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部