开发工具与关键技术: 使用DW设置网页背景图
作者:冉启东
撰写时间:2019年04月08日
使用dw制作登录界面代码如下:
a {/登录字体/
font-size: 20px;
1
margin-top: 0px;
color: #fff;
margin-left: 30px;
margin: auto;
text-decoration: none;
}
.al {/按钮样式/
width: 55px;
height: 35px;
border-radius: 5px;
margin-top: 0px;
margin: auto;
color: #fff;
background-color: #007bff;
border-color: #007bff;
}
.pro_plan {/登录的边框/
margin: 30px auto;
text-decoration: none;
text-align: center;
}
CSS2部分:
input{
height: 38px;/高/
width: 237px;/宽/
margin-top: 20px;/上外边距/
border-radius: 5px;
opacity: 0.7;
}
/----------账号跟密码-----------/
.zczh a {/注册账号/
height: 38px;
margin: -105px;
font-size: 20px;
color: #3CF326;
text-align: center;
}
.wjmm a {/忘记密码/
margin-left:-25px;
font-size: 20px;
color: #3CF326;
2
/text-align: center;/
float: right;
}
效果图如下:
没有设置背景前: 设置背景后:
3