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

html首行缩进怎么设置

时间:2024-10-13 01:14:00

1、创建html文件,写一个<p>标签,填充文字内容用来演示效果。

html首行缩进怎么设置

2、我们给P标签添加宽度,在浏览器中打开文件查看文字显示样式。

html首行缩进怎么设置html首行缩进怎么设置

3、该P标签添加css样式:text-indent:2em;打开网页即可查看到文字首行缩进了两个字符。

html首行缩进怎么设置html首行缩进怎么设置
© 2025 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com