Home > Web Front-end > HTML Tutorial > Color problem_html/css_WEB-ITnose

Color problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:12:05
Original
1046 people have browsed it

According to the ideal background color of li should be gray, why is it white
"http:/ /www.w3.org/TR/html4/loose.dtd">



Untitled Document


< body>



One item


The second item


The third item






    < ;li>aaas
  • aaag

  • aaasg

  • aaaaa






  • bbbbb

  • bbbbbbb





  • cccc




<script> <br> var h3os=document.getElementsByTagName ("h3"); <br> var cdivs=document.getElementById("content").getElementsByTagName("div"); <br> <br> function show(num){ <br> for(var i=0; i<h3os.length; i ){ <br /> if(i==num){ <br /> h3os[num].className="titin"; <br /> cdivs[num].style.display="block" <br /> }else{ <br /> h3os[i].className=""; <br /> cdivs[i].style.display="none"; <br /> <br /> } <br /> <br /> } <br /> <br /> } <br /> </script>


Reply to discussion (solution)

Please give me points. Your semicolon sentence is written in full width. Be careful next time, haha
#content{
width:100%;
height:175px;
background:#888;
}

background:#888;
changed to
background:#888;

Haha. . . Switching back and forth for a while was confusing

Related labels:
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