date6

 

一、行内样式

使用style属性引入CSS样式。< p style="color:red;">style属性的应用

二、内部样式表
在style标签中书写CSS代码。style标签写在head标签中。
示例:

  

三、外部样式表
CSS代码保存在扩展名为.css的样式表中
语法:
1、链接式

选择器:id class 子元素选择器 相邻选择器 群组选择器

 

你可能感兴趣的:(date6)