Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> <script> function displayResult(){ document.getElementById("p1").style.fontSizeAdjust="0.58"; } </script> </head> <body> <p id="p1">这是一些文本</p> <br> <button type="button" onclick="displayResult()">调整字体大小</button> </body> </html>