如何合理的应用CSS整体布局声明

<stype=”text/css”>
    body{font-size:9pt;
    font-color:red;
    background:white}
</style> 

  2. 你会发现,我们同时声明了:字形大小为 9pt、字形颜色为红色、背景为白色,这3个样式,为了将这三个样式分隔开,我们利用分号“;”来将之隔开,这样才能正常起作用!当然,若是你觉得这样一列一列的写出来很浪费空间,那么你也可以写成一行的形式,如下:

<style type=”text/css”>
    body{font-size:9pt;font-color:red;background:white}
</style> 

  

<style type=”text/css”>
    h1,h2,td{font-size:12pt; font-color:red; font-family:宋体}
</style>

如何合理的应用CSS整体布局声明

相关文章:

你感兴趣的文章:

标签云: