CSS 参考手册
CSS letter-spacing 属性
设置为h1和h2元素的字母间距
源代码:
点击运行 »
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> h1 { letter-spacing: 2px; } h2 { letter-spacing: -3px; } </style> </head> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> </body> </html>
运行结果:
点击运行 »