## 小米登录页面制作
>#### 最终呈现效果

> #### 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栏切换
