when to leave space ,when not in CSS?

前端 未结 7 1116
无人共我
无人共我 2021-01-19 19:04

This is ok(without space):

li.highlight{
    background:#FF9900 none repeat scroll 0 0;
}

This will not work(with space):

l         


        
7条回答
  •  醉梦人生
    2021-01-19 19:51

    spacing is meant to call different elements and not items related to one element. for example .highlight is not a separate element. While calling div table are all seperate elements

提交回复
热议问题