网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容 知识问答

html样式都有哪些

时间:2024-10-14 04:22:05

1、background-color即背景色,当我们设置成red,如图<body style="background-color:red">背景this is background</body>

html样式都有哪些

3、换成段落p呢?<p style="background-color:green">段落This is a paragraph.</p>

html样式都有哪些

5、font-family字体,h1的字体为宋体,如图<h1 style="font-family:'宋体'">heading h1</h1>

html样式都有哪些

7、设置文本居中,以h1为例,效果如下<h1 style="text-align:center">heading h1</h1>

html样式都有哪些
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com