请指导我有关CSS类的知识. [英] Plz guide me about CSS Classes.

查看:71
本文介绍了请指导我有关CSS类的知识.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CSS领域的新手.但是我对CSS类感到困惑.
例如

I am a new comer in the field of CSS. But I have a confusion about CSS Classes.
For Example

#logo p {
    float: left;
    margin: 0;
    padding: 26px 0 0 10px;
    font: normal 14px Georgia, "Times New Roman", Times, serif;
    font-style: italic;
    color: #5E4E38;
}
#logo p a {
    color: #5E4E38;
}
#logo a {
    border: none;
    background: none;
    text-decoration: none;
    color: #A83A01;
}



在这里我想了解为什么使用了#Logo p,#Logo p a,#Logo a和#Logo p等.我们只能使用#Logo,但是#Logo CSS类使用的是什么(a,p,p a等).它们的功能是什么?



Here I want to understand that Why #Logo p, #Logo p a, #Logo a and #Logo p etc has been used. We can use only #Logo but what are these (a, p, p a etc) with #Logo CSS Class. What is their functionality?

推荐答案

#logoid. pa是指html标签.请参见此处 [ ^ ]
#logo is an id. p and a refer to html tags. See here[^]


这篇关于请指导我有关CSS类的知识.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆