#和之间有什么区别。与CSS? [英] What is the difference between # and . with CSS?
本文介绍了#和之间有什么区别。与CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#
和与CSS之间有什么区别?
What is the difference between #
and .
with CSS?
#main
{
background-color: #fff;
_height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
}
.main
{
background-color: #fff;
_height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
}
推荐答案
'#表示 id 。 是 。
所以... < tagname id =main>
和< tagname class =main>
....
So.. <tagname id="main">
and <tagname class="main">
....
希望有所帮助。
这篇关于#和之间有什么区别。与CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文