網站後台管理界面的設計是要在數據庫建好只好才能進行、、如果數據庫還沒建好的話,那連接部分先設置為空,頁面轉置方面也不能完成功能。今天工作完成得很早,就自己寫了個代碼,還有頁面背景圖片用了學習時候的一個例子,如果自己需要設置地有個性,可用自己網站的logo設置自己的風格
- <!DOCTYPEhtmlPUBLIC-//W3C//DTDXHTML1.0Transitional//ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
- <htmlxmlns=http://www.w3.org/1999/xhtml>
- <head>
- <metahttp-equiv=Content-Typecontent=text/html;charset=gb2312/>
- <title>後台登陸界面</title>
- <styletype=text/css>
- <!--
- .work{
- font-size:32px;
- color:#FF6600;
- padding-top:180px;
- }
- body{
- background-color:#336699;
- }
- body{
- background-color:#CCCCFF;
- background-image:url(images/2.jpg);
- }
- .STYLE1{
- font-size:18px;
- font-weight:bold;
- }
- .form{
- padding-top:280px;
- padding-right:50px;
- padding-left:600px;
- }
- .STYLE2{color:#FFCCFF}
- -->
- </style>
- </head>
- <body>
- <formmethod=postaction=class=form>
- <tablewidth=280border=0align=center>
- <tr>
- <tdwidth=87align=centervalign=middlebackground=images/1.jpg><divalign=rightclass=STYLE1>
- <divalign=right>用戶名:</div>
- </div></td>
- <tdwidth=183background=images/1.jpgbgcolor=#CCFFFF><spanclass=STYLE2>
- <label>
- <inputname=nametype=textid=namemaxlength=10/>
- </label>
- </span></td>
- </tr>
- <tr>
- <tdheight=37align=centervalign=middlebackground=images/1.jpg><divalign=right><spanclass=STYLE1>密碼</span>:</div></td>
- <tdbackground=images/1.jpgbgcolor=#CCFFFF><spanclass=STYLE2>
- <label>
- <inputname=pwdtype=passwordid=pwdmaxlength=20/>
- </label>
- </span></td>
- </tr>
- <tr>
- <tdalign=centervalign=middlebackground=images/1.jpg><label>
- <divalign=center>
- <inputtype=submitname=Submitvalue=提交/>
- </div>
- </label></td>
- <tdbackground=images/1.jpgbgcolor=#CCFFFF><spanclass=STYLE2>
- <label>
- </span>
- <divalign=centerclass=STYLE2>
- <inputname=resettype=resetid=resetvalue=重置/>
- </div>
- <spanclass=STYLE2>
- </label>
- </span></td>
- </tr>
- </table>
- </form>
- </body>
- </html>
表單部分如果CSS+DIV熟練的話那就不要用table標記,table標記做的話可能代碼量大,會影響速度。
下面的圖片是上面代碼運行之後的結果。