Home  >  Article  >  Web Front-end  >  Ask a question about css under ie6! _html/css_WEB-ITnose

Ask a question about css under ie6! _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:09:54914browse

I would like to ask:

#name_a{.....;}li{....;}

Is this not possible? ?
Should they be separated:
#name_a{....;}#name_a li{.....;}


Reply to discussion (solution)

Isn’t the first one written separately? Well. . Just no line breaks. . What has changed is everything. . .

#name_a li{
and
li{
The range of selection is different

Both are ok, personal preference, you can use the entire css file without A branch is enough. Look at Jingdong’s css, which is densely packed. There are no branches.

.main{...}.menu{....}.top{...}
As above Writing will make the css file take up less space, but it will be difficult to read

.main{...}
.menu{....}
.top{...}
The css file written like this will be a little larger, but more organized

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn