婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Html制作簡單而漂亮的登錄頁面

Html制作簡單而漂亮的登錄頁面

熱門標簽:高德地圖標注廁所 中國地圖標注城市的 地圖標注沿海城市房價 地圖標注員工作內容 通遼地圖標注app 智能語音電銷機器人客戶端 威海語音外呼系統平臺 西安金倫外呼系統 江西ai電銷機器人如何

先來看看樣子。

html源碼:

XML/HTML Code復制內容到剪貼板
  1. <!DOCTYPE html>  
  2. <html lang="en">  
  3. <head>  
  4.     <meta charset="UTF-8">  
  5.     <title>Login</title>  
  6.     <link rel="stylesheet" type="text/css" href="Login.css"/>  
  7. </head>  
  8. <body>  
  9.     <div id="login">  
  10.         <h1>Login</h1>  
  11.         <form method="post">  
  12.             <input type="text" required="required" placeholder="用戶名" name="u"></input>  
  13.             <input type="password" required="required" placeholder="密碼" name="p"></input>  
  14.             <button class="but" type="submit">登錄</button>  
  15.         </form>  
  16.     </div>  
  17. </body>  
  18. </html>  

css代碼:

CSS Code復制內容到剪貼板
  1. html{   
  2.     width: 100%;   
  3.     height: 100%;   
  4.     overflowhidden;   
  5.     font-stylesans-serif;   
  6. }   
  7. body{   
  8.     width: 100%;   
  9.     height: 100%;   
  10.     font-family'Open Sans',sans-serif;   
  11.     margin: 0;   
  12.     background-color#4A374A;   
  13. }   
  14. #login{   
  15.     positionabsolute;   
  16.     top: 50%;   
  17.     left:50%;   
  18.     margin: -150px 0 0 -150px;   
  19.     width300px;   
  20.     height300px;   
  21. }   
  22. #login h1{   
  23.     color#fff;   
  24.     text-shadow:0 0 10px;   
  25.     letter-spacing1px;   
  26.     text-aligncenter;   
  27. }   
  28. h1{   
  29.     font-size: 2em;   
  30.     margin: 0.67em 0;   
  31. }   
  32. input{   
  33.     width278px;   
  34.     height18px;   
  35.     margin-bottom10px;   
  36.     outlinenone;   
  37.     padding10px;   
  38.     font-size13px;   
  39.     color#fff;   
  40.     text-shadow:1px 1px 1px;   
  41.     border-top1px solid #312E3D;   
  42.     border-left1px solid #312E3D;   
  43.     border-right1px solid #312E3D;   
  44.     border-bottom1px solid #56536A;   
  45.     border-radius: 4px;   
  46.     background-color#2D2D3F;   
  47. }   
  48. .but{   
  49.     width300px;   
  50.     min-height20px;   
  51.     displayblock;   
  52.     background-color#4a77d4;   
  53.     border1px solid #3762bc;   
  54.     color#fff;   
  55.     padding9px 14px;   
  56.     font-size15px;   
  57.     line-heightnormal;   
  58.     border-radius: 5px;   
  59.     margin: 0;   
  60. }  

總結:

復制代碼
代碼如下:
<input type="text" required="required" **placeholder="用戶名"** name="u"></input>
<input type="password" required="required" **placeholder="密碼"** name="p"></input>

placeholder="用戶名"的作用:占位符

以上就是本文的全部內容,希望對大家的學習有所幫助。

標簽:北海 阜陽 營口 崇左 眉山 晉中 青海 河池

巨人網絡通訊聲明:本文標題《Html制作簡單而漂亮的登錄頁面》,本文關鍵詞  Html,制作,簡單,而,漂,亮的,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Html制作簡單而漂亮的登錄頁面》相關的同類信息!
  • 本頁收集關于Html制作簡單而漂亮的登錄頁面的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 祁连县| 谢通门县| 华亭县| 鹤壁市| 兴海县| 金堂县| 平谷区| 天镇县| 曲麻莱县| 贵南县| 曲周县| 新邵县| 沂源县| 鹤庆县| 永川市| 舟山市| 博湖县| 石河子市| 鹤岗市| 泰安市| 太保市| 通渭县| 永胜县| 冀州市| 铁岭市| 肃北| 清河县| 巴林右旗| 灌云县| 靖西县| 蕲春县| 阿瓦提县| 普兰县| 克拉玛依市| 阿鲁科尔沁旗| 五大连池市| 镇原县| 南丹县| 永新县| 张家港市| 台山市|