div区域的颜色没显示出来_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:45:13
Original
1276 people have browsed it

HTML 文档

nbsp;html>



无标题文档




div区域一


div区域二


div区域三


div区域四





这里div_1,div_2,div_3,div_4这几个区域内的颜色没显示出来,这是怎么回事呢?

回复讨论(解决方案)

本帖最后由 net_lover 于 2013-08-03 10:25:50 编辑

你应该写
#div_2{background-color:#99FFCC;}

id选择器使用
#id值进行标识

哦 太感谢了!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template