您好,欢迎来到层花娱乐。
搜索
您的当前位置:首页html+css这种登陆效果怎么做成的,把邮箱放到text框里面,但又不影响输入_html/css_WEB-ITnose

html+css这种登陆效果怎么做成的,把邮箱放到text框里面,但又不影响输入_html/css_WEB-ITnose

来源:层花娱乐


回复讨论(解决方案)

你检查一下就知道了,实际上文本框还是和“账号”这些文字分开的,只是看起来在一起,等下帮你写个demo吧。

 demo 

同意楼上观点

label for input
CSS部分

input{outline: none; border: 0;}.form-box{font-size: 12px; color: #000;}.form-section{position: relative; margin-bottom: 5px;}.form-section label{	position: absolute;	width: 30px;	left: 0;	height: 30px;	line-height: 30px;	padding:0 5px;	font-family: 'Microsoft Yahei';	font-weight: bold;}.form-section input{padding-left: 32px; height: 30px; width: 200px; border: 1px solid #ccc;}.submit-btn{	padding-right: 32px;	color: #fff;	background-color: #F33737;	text-align: center;	font-family: 'Microsoft Yahei';	font-weight: bold;	cursor: pointer;}

HTML部分
						

懂了 实际上是不是去掉input的边框,然后用个div包起来加上个边框。

div内放个文字div和文本框 按百分比设置宽度

Copyright © 2019- cenghua.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务