fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <script> function displayResult(){ document.getElementById("p1").style.textShadow="5px 5px 1px #ff0000,10px 10px 1px #0000ff"; } </script> </head> <body> <p id="p1">这是一些文本。</p> <br> <button type="button" onclick="displayResult()">添加文本的阴影</button> </body> </html>
运行结果