Webサイトのバックエンド管理インターフェイスの設計は、データベースが完了した場合にのみ構築することです。データベースが構築されていない場合、接続部分は最初に空になるように設定され、ページ転置に関して関数を完了できません。今日、作業は非常に早く完了したので、自分でコードを書きました。また、勉強しているときにページの背景画像の例を使用しました。個性を備えた場所を設定する必要がある場合は、独自のWebサイトのロゴを使用して独自のスタイルを設定できます。
- <!doctypehtmlpublic - // w3c // dtdxhtml1.0transitional // enttp://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>
- <! -
- 。仕事{
- フォントサイズ:32px;
- 色:#ff6600;
- パディングトップ:180px;
- }
- 体{
- バックグラウンドカラー:#336699;
- }
- 体{
- バックグラウンドカラー:#ccccff;
- 背景イメージ:url(images/2.jpg);
- }
- .style1 {
- フォントサイズ:18px;
- font-weight:bold;
- }
- 。形状{
- パディングトップ:280px;
- パディング右:50px;
- パディング左: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>パスワード</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>
フォームのCSS+DIVに熟練している場合は、テーブルタグを使用しないでください。それを行うと、コードが大きくなり、速度に影響します。
上記のコードが実行された後の結果は、以下の写真です。