DIV显示问题,求救!_html/css_WEB-ITnose

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



        
  • 首页

  •         

    …… 
        ……
            ……
            

        

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

提问:为什么div没有用#head_content  li>div这个样式?


回复讨论(解决方案)

楼主,你难道不觉得你的代码有很严重的封闭问题吗?div都在li的外面了。怎么可能会应用到li>div的样式呢?

什么浏览器测试的

在保证标签嵌套正确的情况下,用非ie来看效果,> 这样的选择器

#head_content li>div
这个是什么啊?不懂的~T-T

div在li的外面,   li>div这个没看懂

div在li的外面, li>div这个没看懂

子元素选择器

li>div 这个jquery的选择器里到是见过

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!