css 使用者登入表單程式碼

antzone發表於2017-07-19

分享一段非常簡單的程式碼,通常用來作為使用者登入之用,比較適合於初學者參考。

程式碼例項如下:

[HTML] 純文字檢視 複製程式碼執行程式碼
<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://www.softwhy.com/" />
<title>螞蟻部落</title>
<style>
ul li{
  list-style: none;
  font-size: 12px;
  margin: 5px;
  width: 200px;
}
ul .ant input{
  width:150px;
}

</style>
</head>
<body>
<div>
  <ul>
    <li class="ant">姓名:<input type="text"></li>
    <li class="ant">密碼:<input type="password"></li>
    <li>
      <input type="reset" value="重置"/>
      <input type="submit" value="登入"/>
    </li>
   </ul>
</div>
</body>
</html>

相關文章