以下css的代码是什么意思

来源:百度知道 编辑:UC知道 时间:2024/07/01 06:38:39
<style type=text/css>
<!--
body{background-image:url(1-4-1.jpg);background- attachment:scroll;background-position:100% 100%;
background-repeat:no-repeat}
h2{font-family:黑体;font-size:22pt;color:red}
.p1{font-size:20px;color:#000000;text-align:left}
-->
</style>

以上CSS代码 我的疑问是"<!- - - -> " 这是一个注释标记,这样做不就是把代码注释掉啦吗?代码就不起作用啦啊,但是实际上他还是起作用的,为什么啊?搞不明白啊?期待高手答复
还有一个问题
body{background-image:url(1-4-1.jpg);background- attachment:scroll;background-position:100% 100%;
background-repeat:no-repeat}
具体是什么意思啊?能一一详细说明吗?谢谢!!

看不懂

<!---->不是CSS的注释符但是它是HTML的注释符, 作用是使CSS代码在不支持CSS的浏览器中不会产生奇怪的输出.

background-image:url(1-4-1.jpg);background- attachment:scroll;background-position:100% 100%;
background-repeat:no-repeat

这是在定义背景. 关于其详细你自己去查资料.要解释起来太多了.