<html>
<head>
<meta charset="utf-8">
<title>Fmpq教程(fmpq.com)</title>
<script>
function displayResult(){
document.getElementById("p1").style.fontFamily="Impact,Charcoal,sans-serif";
}
</script>
</head>
<body>
<p id="p1">这是一些文本。</p>
<br>
<button type="button" onclick="displayResult()">修改字体</button>
</body>
</html>