css中两个点是什么意思比如.mani.yer{width:100px; height:22px; background:#930;}

html-css010

css中两个点是什么意思比如.mani.yer{width:100px; height:22px; background:#930;},第1张

.main.yer作用于如下:

<div class="mani yer"></div>,意思就是同时使用mani和yer作为class标记的元素。

.main .yer作用于如下:

<div class="mani">

<div class="yer"></div>

</div>

意思就是,定义于使用mani标记元素之内的yer。

例如:

<style type="text/css">

.main.top1{

width:800px

height:40px

background:#ffaaff

border:1px solid #dddddd

}

</style>

<div class="main">/*此无定义样式*/

<div class="top1">/*此应用了上面的样式*/

</div>

</div>

楼主说的两种都是相对路径,只不过第一种是01文件夹不是当前文件夹下的,而第二种是当前文件夹下的文件夹。

绝对路径是只 http://www.baidu.com/xx/01/xx.gif

或者 /xx/01/xx.gif 这种叫做绝对路径,从站点目录开始的算起

楼主说的../ 是上一级,或者父路径的意思。。。

建议,百度一下 相对路径 绝对路径 看看概念。。。

——————————————————————————————

就用绝对路径吧,绝对路径就是根据站点目录为根目录的。如果还有疑问,在线咨询吧。。