PHP開發新聞管理系統之添加頁

下面我們來看以下新增頁

效果圖如下:

add.png

程式碼如下:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <style type="text/css">
    *{margin:0px;padding:0px;}
    body{background:#ccc;}
    .add{width:450px;height:280px;background:#eee;float:left;}
    .cont{width:500px;height:350px;margin-top:5px;margin-left:5px;}
    form{margin-left:10px;padding-top:30px;}
    .sub{width:100px;height:40px;border:1px solid #ccc;}
    .sub:hover{background:#f90}
    </style>
</head>
<body>
    <div class="add">
        <div class="cont">
            <form method="post" action="addnews.php">
                标题:<input type="text" name="title"></br></br>
                内容:<textarea cols="30" rows="5" name="content"></textarea></br></br>
                <input type="submit" value="添加" class="sub">
            </form>
        </div>
    </div>
</body>
</html>
繼續學習
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> *{margin:0px;padding:0px;} body{background:#ccc;} .add{width:450px;height:280px;background:#eee;float:left;} .cont{width:500px;height:350px;margin-top:5px;margin-left:5px;} form{margin-left:10px;padding-top:30px;} .sub{width:100px;height:40px;border:1px solid #ccc;} .sub:hover{background:#f90} </style> </head> <body> <div class="add"> <div class="cont"> <form method="post" action="addnews.php"> 标题:<input type="text" name="title"></br></br> 内容:<textarea cols="30" rows="5" name="content"></textarea></br></br> <input type="submit" value="添加" class="sub"> </form> </div> </div> </body> </html>