发个页面共享下
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>文章添加页面</title> <style> *{ margin:0; padding:0; } body{ font-size:12px; } li{ list-style:none; } #wrap{ width:800px; margin: 0 auto; padding: 20px; } #wrap h1{ color: #08b; } #wrap .item{ padding: 20px; margin-bottom: 20px; border: 1px dotted #08b; } #wrap .item h2 { font-size: 16px; font-weight: bold; border-bottom: 2px solid #08b; margin-bottom: 10px; } #menu{ position: fixed; top: 100px; left: 50%; margin-left: 400px; width: 80px; } #menu ul li a{ display: block; margin: 5px 0; font-size: 14px; font-weight: bold; color: #333; width: 80px; height: 50px; line-height: 50px; text-decoration: none; text-align: center; } #menu ul li a:hover, #menu ul li a.current { color: #fff; background: #08b; } </style> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js" type="text/javascript"></script> <script> $(document).ready(function(e) { }); </script> </head> <body> <div id="menu"> <ul> <li><a href="article.add.php" class="current">发布文章</a></li> <li><a href="article.manage.php">管理文章</a></li> </ul> </div> <div id="wrap"> <h1>文章添加页面</h1> <div class="item"> <h2>发布文章</h2> <form id="form1" name="form1" method="post" action="article.add.handle.php"> <table> <tr> <td>标题:</td> <td><input type="text" name="title" id="title"/></td> </tr> <tr> <td>作者:</td> <td><input type="text" name="author" id="author"/></td> </tr> <tr> <td>简介:</td> <td><textarea name="description" rows="5" cols="60" id="description"></textarea></td> </tr> <tr> <td>内容:</td> <td><textarea name="content" rows="15" cols="60" id="content"></textarea></td> </tr> <tr> <td colspan="2" align="right"><input type="submit" name="button" value="提交" id="submit"/></td> </tr> </table> </form> </div> </div> </body> </html> <?php
发个文章添加页面,如果有需要的同学不想自己打的