web示例

html与css之间需要link进行连接
css中color:颜色
font-family:字体
font-size:字号
font-style:倾斜

Document

这是一个使用Times New Roman字体的段落。

这是一个使用Helvetica字体的段落。

这是一个使用Courier New字体的段落。

这是一个使用Florence字体的段落。

这是一个使用Blippo字体的段落。

Paragraph text set to be small
Paragraph text set to be medium
Paragraph text set to be large
Paragraph text set to be very large
我没有效果。
我是斜体。
我是倾斜,楼上的孪生兄弟
我是隔壁邻居HTML叔叔的娃,但是为什么跟楼上两兄弟这么像,究竟发生了什么
万紫千红 青出于蓝 绿光闪烁

p.serif {
font-family: "Times New Roman", Times, serif;
}

p.sansserif {
font-family: Helvetica, Arial, sans-serif;
}

p.monospace {
font-family: "Courier New", Courier, monospace;
}

p.cursive {
font-family: Florence, cursive;
}

p.fantasy {
font-family: Blippo, fantasy;
}
p1.small {
font-size: small;
}

p1.medium {
font-size: medium;
}

p1.large {
font-size: large;
}

p1.xlarge {
font-size: x-large;
}
p2.normal {
font-style: normal;
}
p2.italic {
font-style: italic;
}
p2.oblique {
font-style: oblique;
}
p3.red {
color: rgb(255, 0, 0);
}
p3.blue {
color: #0000FF;
}
p3.green {
color: green;
}

posted @ 2025-03-03 09:11  曹明阳  阅读(5)  评论(0)    收藏  举报