- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title > 无标题文档 </title>
- <style>
- *{padding:0; margin:0;}
- header{height:44px; line-height:44px; text-align:center; color:#fff; background:#000; font-size:24px;}
- footer{width:100%; background:#F60; text-align:center; height:30px; line-height:30px; text-align:center; color:#fff; position:fixed; bottom:0px;}
- .main{ padding-bottom:40px;}
- .scrollbox{height:300px; width:90%; margin:0 auto; overflow-y:scroll; margin-top:20px;}
- </style>
- </head>
来源: http://www.qdfuns.com/article/14613/5053b8af3ff087032f39464871139778.html