The design of the website backend management interface is to build the database and only if it is done. If the database has not been built, the connection part will be set to empty first, and the function cannot be completed in terms of page transposition. Today, the work was completed very early, so I wrote a code myself, and I also used an example of the page background image when I was studying. If you need to set the place with personality, you can use the logo of your own website to set your own style.
- <!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>Backend login interface</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>Username:</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>Password</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=submit/
- </div>
- </label></td>
- <tdbackground=images/1.jpgbgcolor=#CCFFFF><spanclass=STYLE2>
- <label>
- </span>
- <divalign=centerclass=STYLE2>
- <inputname=resettype=resetid=resetvalue=reset/>
- </div>
- <spanclass=STYLE2>
- </label>
- </span></td>
- </tr>
- </table>
- </form>
- </body>
- </html>
If you are proficient in CSS+DIV in the form, don’t use table tags. If you do it, the code may be large and it will affect the speed.
The picture below is the result after the above code is run.