赞
踩
微信小程序交流群:111733917 | 微信小程序从0基础到就业的课程:https://edu.csdn.net/topic/huangjuhua
代码
<!DOCTYPE> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>输入框的布局:黄菊华老师</title> </head> <body> <style> .rongqi{ display:flex;} .xm01{ width:100%; background:#09F; margin:5px; display:flex; border-radius:5px;} .xm01 input{flex:1; border-top-right-radius:5px; border-bottom-right-radius:5px;} .xm02{ width:100%; background-color:#69F; margin:5px; display:flex; border-radius:5px;} .xm02 input{flex:1;} </style> <div class="rongqi"> <p class="xm01"> <label style="padding:5px;">用户名</label><input type="text" /> </p> <p class="xm02"> <label style="padding:5px;">密码</label><input type="text" /> </p> </div> <style> .rongqi02{ display:flex;} .c01{ width:100%; display:flex;} .c01-img{ border:1px solid #CCC; border-top-left-radius:5px; border-bottom-left-radius:5px; border-right:none;} .c01 button{ border:1px solid #ccc; border-left:none;} </style> <div class="rongqi02"> <div class="c01"> <img src="1.png" class="c01-img"><input type="text"><button>提交</button> </div> <div class="c01"> <img src="1.png"><input type="text"><button>提交</button> </div> </div> </body> </html>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。