fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <style type="text/css"> body{ background:#f3f3f3 url('img_tree.png'); } </style> <script> function displayResult(){ document.body.style.backgroundRepeat="repeat-y"; } </script> </head> <body> <button type="button" onclick="displayResult()">垂直重复背景图像</button> <br> <h1>Hello World!</h1> <p>这是一个段落</p> </body> </html>
运行结果