W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <style> span { float: left; width: 0.7em; font-size: 400%; font-family: algerian, courier; line-height: 80%; } </style> </head> <body> <p> <span>T</span>his is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. </p> <p> 在上面的段落中,文本的第一个字母嵌入 span 元素中。 span 元素的宽度是当前字体大小的 0.7 倍。 span 元素的字体大小为 400%(很大),行高为 80%。 span 中字母的字体将是 "Algerian"。 </p> </body> </html>