x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>蜜蜂教程(mifengjc.com)</title>
6
<script>
7
function displayResult() {
8
document.getElementById("p1").style.letterSpacing = "15px";
9
}
10
</script>
11
</head>
12
<body>
13
14
<p id="p1">这是一些文本。</p>
15
<br>
16
<button type="button" onclick="displayResult()">修改字符间间距</button>
17
18
</body>
19
</html>