fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <style type="text/css"> #b1{ position:absolute; } </style> <script> function displayResult(){ document.getElementById("b1").style.right="100px"; } </script> </head> <body> <input type="button" id="b1" onclick="displayResult()" value="设置右部位置为100 px"> </body> </html>
运行结果