## 小米登錄頁面制作
>#### 最終呈現效果

> #### html代碼
```
<div class="login">
<a href="#" class="choose left">賬號登錄</a>
<span style="color: #e0e0e0">|</span>
<a href="#" class="choose right">掃碼登錄</a>
<form>
<input type="text" placeholder="郵箱/手機號/小米賬號" id="login-text">
<input type="password" placeholder="密碼" id="login-pwd">
<input type="submit" value="登錄" id="login-sub">
</form>
<span class="forget">
<a href="#">注冊小米賬號</a>
<span>|</span>
<a href="#">忘記密碼?</a></span>
<fieldset>
<legend>其他方式登錄</legend>
</fieldset>
<div class="icon">
<a href="#" class="qq"></a>
<a href="#" class="weibo"></a>
<a href="#" class="pay"></a>
<a href="#" class="wechat"></a>
</div>
</div>
```
>#### css代碼
```
/* ----------元素位置布局---------- */
* {
margin: 0;
padding: 0;
}
.login {
width: 400px;
height: 500px;
box-shadow: 0 0 15px 3px rgba(51, 51, 51, 0.53);
margin: 20px auto 0 auto;
/* border: 1px solid aqua; */
text-align: center;
}
#login-text,
#login-pwd {
width: 350px;
height: 30px;
display: inline-block;
margin-left: auto;
margin-right: auto;
}
#login-sub {
width: 364px;
height: 30px;
display: inline-block;
margin-left: auto;
margin-right: auto;
}
/* ----------樣式設計---------- */
a {
color: black;
text-decoration: none;
}
.choose {
display: inline-block;
margin-top: 30px;
font-size: 22px;
}
.left {
color: #f56600;
margin-right: 15px;
}
.right {
margin-left: 15px;
}
#login-text,
#login-pwd {
padding: 8px 5px;
font-size: 16px;
/* box-sizing: border-box; */
outline: none;;
}
#login-text {
margin-top: 35px;
}
#login-pwd {
margin-top: 15px;
}
#login-sub {
height: 50px;
margin-top: 15px;
border: none;
outline: none;
font-size: 20px;
background-color: #f56600;
color: white;
}
.forget {
display: inline-block;
margin-top: 15px;
font-size: 13px;
color: #e0e0e0;
}
.forget a {
color: #999;
}
.forget a:hover {
text-decoration: underline;
}
fieldset {
display: inline-block;
width: 364px;
margin-top: 80px;
color: #999;
border: none;
border-top: 1px solid #999
}
/* ------------icon---------- */
.icon {
margin: 30px auto;
}
.qq,.weibo,.pay,.wechat {
width: 18px;
height: 18px;
display: inline-block;
margin: 0 20px;
border-radius: 50%;
background: gray url("images/icons_type.png");
}
.qq {
background-position-x: -19px;
}
.weibo {
background-position-x: -38px;
}
.pay {
background-position-x: -59px;
}
.wechat {
background-position-x: -87px;
}
.qq:hover,
.weibo:hover,
.pay:hover,
.wechat:hover{
background-color: black;
}
```
---------
整個demo包括所含圖片已上傳至[github](https://github.com/MrXuxu/H5_demo/tree/master/%E5%B0%8F%E7%B1%B3%E7%99%BB%E5%BD%95%E6%A0%8F)
- 空白目錄
- css實用樣式
- css--下拉欄的幾種設計
- css--圖片陰影以及浮起的效果
- css--圖片翻轉二:自動翻轉
- css--圖片翻轉一:滑過翻轉
- css--三種loading特效
- css--圖片遮罩效果實現
- css--又是三種loading特效
- css--帶三角形的圖形實現
- js demo
- 原生demo
- 1. 原生js實現輪播圖
- 2. 倒計時按鈕
- 3. 動態添加表格
- 4. checkbox全選反選
- 5. 小米登錄方式切換
- 6. 點擊事件
- 7. 個人網頁導航條(二)點擊滾動
- 8. 瀑布流實現!
- 9. 個人網頁導航條(一)滑動固定
- 10. 定時器實現淡入淡出效果
- 11. 輪播圖setTimeout版
- jQuery demo
- 1. 輪播圖實現!
- 2. 成都小風車導航特效
- html組件
- html--導航欄(家居醫生)
- html--登錄頁面(小米登錄)
- html--響應式導航條(木兮地板)
- html--搜索欄
- Vue demo
- 1. mvvm實現動態添加表格
- 2. 豆瓣TOP250渲染
- 3. 制作一段跑馬燈文字
- 3.1. vue 單行文字自動跑馬燈效果
- 4. 利用豆瓣接口搜索書籍
- 5. 制作簡易計算器
- 6. 創建一個點贊組件
- 7. 列表添加刪除動畫
- 8. isShow手風琴原理
- 9. tab欄切換