多语言展示
当前在线:429今日阅读:126今日分享:42

html样式都有哪些?

html样式,颜色、大小、背景等
方法/步骤
1

background-color即背景色,当我们设置成red,如图背景this is background

2

设置h2标题的背景色,是什么样呢?我们设置为红色看下

标题This is a heading

3

换成段落p呢?

段落This is a paragraph.

4

整个效果运行下,如图

5

font-family字体,h1的字体为宋体,如图

heading h1

6

设置字体、颜色和大小的p样式,结果是怎样的呢?

paragraph p

7

设置文本居中,以h1为例,效果如下

heading h1

推荐信息