日期:2014-05-16  浏览次数:20594 次

css选择器

问题1:

input.upload  我理解,下边.upload input是什么意思?


        .upload input
        {
            filter: alpha(opacity=0);
            opacity: 0;
        }



问题2:
up.bottom    up前边怎么没有1个 点,不是 .up才表示类吗?

        .up .head, .up .con, up.bottom
        {
            width: 100%;
        }




------解决方案--------------------
问题1,是继承css 写法 问题2,是up为bottom属性的样式
------解决方案--------------------
.upload input:  class="upload"元素 下的 input 标签元素
.up .head, .up .con, up.bottom

.up 下的 .head 或 .up 下的 .con 或 up 标签 的 class=bottom 

------解决方案--------------------
.upload p  .upload   子级下的 p , 

<div class="upload">
<p >This paragraph is very important.</p>
</div>
------解决方案--------------------
引用:
Quote: 引用:

.upload p  .upload   子级下的 p , 

<div class="upload">
<p >This paragraph is very important.</p>
</div>


谢谢,问题一,我理解了。

问题二     up.bottom      html下边没有up这个标签吧?



up.bottom    标签up 并且 class=bottom 
<up class="bottom">