Home > Web Front-end > HTML Tutorial > DIV display problem, please help! _html/css_WEB-ITnose

DIV display problem, please help! _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:13:53
Original
949 people have browsed it



  • Homepage

  •                                            gt;

#head_content li>div
{
top:10px;
width:233px;
position:absolute;
}

Question: Why is the div not using the #head_content li>div style?




Reply to discussion (solution)

Owner, don’t you think your code has a serious closure problem? The divs are all outside the li. How is it possible to apply the style to li>div?
What browser was tested?

Under the condition of ensuring that the tags are nested correctly, use non-ie to see the effect, > Such a selector

#head_content li> div

What is this? I don’t understand~T-T

div is outside the li, I don’t understand the li>div

div is outside the li, I don’t understand the li>div

Sub Element selector

li>div I have seen this jquery selector

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