整合营销服务商

电脑端+手机端+微信端=数据同步管理

免费咨询热线:

JavaScript+css实现的响应式登录注册页面web前端html源码

家好,今天给大家介绍一款,JavaScript+css实现的响应式登录注册页面web前端html源码(图1)。送给大家哦,获取方式在本文末尾。

图1

响应式设计,适应各种分辨率(图2)

图2

登录界面(图3)

图3

注册界面(图4)

图4

源码完整,需要的朋友可以下载学习(图5)

图5

本源码编码:10200,需要的朋友,访问下面链接后,搜索10200,即可获取。

就爱UI - 分享UI设计的点点滴滴

绍:

这是使用 Tailwind CSS 制作的一款流行的注册界面

左边是示意图/介绍图/广告图,右边是注册表单。

页面为响应式,兼容 PC、Pad 和手机模式。


注:

由于使用 Tailwind CSS 2.0.3 版本,所以不兼容 IE 浏览器。

演示地址:

https://www.361zy.com/302.html

下载地址:

https://www.06dn.com/s/kpCX

解压码:WFAmegqB

lt;head>

<meta charset="UTF-8">

<title></title>

<style>

td input[type="text"],td input[type="email"],td input[type="password"], td input[type="date"]{

width:98%;

}

</style>

<script>

function checkLength(){

var pwd=document.getElementById("pwd").value;

var spanLen=document.getElementById("spanLen");

if(pwd.length<=3&&pwd.length>0)

spanLen.innerHTML="弱";

else if(pwd.length<=6)

spanLen.innerText="中";

else

spanLen.innerText="强";

}

function checkPSW(){

var pwd1=document.getElementById("pwd").value;

var pwd2=document.getElementById("pwd2").value;

var pswInfo=document.getElementById("pswInfo");

if(pwd1!=pwd2)

pswInfo.innerText="两次密码不同"; // alert("两次密码不同");

else

pswInfo.innerText="";

}

</script>

</head>


<body>

<form>

<fieldset>

<legend>

用户注册页面

</legend>

<table align="center" width="500px" >

<caption>用户登录信息</caption>

<tr>

<td width="20%" >用户名</td>

<td width="40%"><input type="text" required="true" autofocus="true"></td>

<td width="40%">*</td>

</tr>

<tr>

<td>邮箱</td>

<td><input type="email" required="true"></td>

<td>*</td>

</tr>

<tr>

<td>密码</td>

<td><input type="password" id="pwd" required="true" onkeyup="checkLength()"></td>

<td>*&nbsp<span id="spanLen"></span></td>

</td>

</tr>

<tr>

<td>确认密码</td>

<td><input type="password" id="pwd2" required="true" onblur="checkPSW()"></td>

<td align="left">*&nbsp<span id="pswInfo" style="color: #c41a15;"></span></td>

</tr>

</table>

<br>

<br>

<table align="center" width="500px">

<caption>用户基本信息</caption>

<tr>

<td width="20%">性别</td>

<td width="40%">

<select size="1">

<option>男</option>

<option>女</option>

</select>

</td>

<td width="40%"></td>

</tr>

<tr>

<td>出生年月</td>

<td><input type="date"></td>

</tr>

<tr>

<td>住址</td>

<td><input type="text"></td>

</tr>

<tr>

<td colspan="2">

<input type="submit" value="注册新用户">

</td>

<td>

<input type="reset" value="重置">

</td>

</tr>

</table>

</fieldset>

</form>

</body>