HTML fieldset标签的使用方法是什么,如何用于登录页面
Admin 2022-09-24 群英技术资讯 1076 次浏览
这篇文章主要讲解了“HTML fieldset标签的使用方法是什么,如何用于登录页面”,文中的讲解内容简单、清晰、详细,对大家学习或是工作可能会有一定的帮助,希望大家阅读完这篇文章能有所收获。下面就请大家跟着小编的思路一起来学习一下吧。<form> <fieldset> <legend>Personalia:</legend> Name: <input type="text"><br> Email: <input type="text"><br> Date of birth: <input type="text"> </fieldset></form>
运行效果如图:

下面是一个比较复杂的fieldset标签使用示例,CSS login登录面板页面设计:
fieldset {
border:none;
margin:0;
}
input {
border:none;
font-family:inherit;
font-size:inherit;
margin:0;
-webkit-appearance:none;
}
input:focus {
outline:none;
}
input[type="submit"] {
cursor:pointer;
}
#login-form {
margin:10px;
width:300px;
border:1px solid #ea6e10;
vertical-align:middle;
border-radius:0px;
}
#login-form h3 {
background-color:#ea6e10;
color:#fff;
font-size:14px;
margin-top:0;
padding:20px;
text-align:right;
}
#login-form fieldset {
background:#fff;
border:1px #ea6e10;
padding:20px;
position:relative;
}
#login-form input {
font-size:14px;
}
#login-form input[type="username"],
#login-form input[type="password"] {
background:#dcdcdc;
padding:12px 10px;
width:100%;
margin-top:5px;
}
#login-form input[type="username"] {
}
#login-form input[type="password"] {
border-radius:0px 0px 3px 3px;
}
#login-form input[type="submit"] {
background:#ea6e10;
text-align:center;
color:#fff;
float:left;
font-weight:bold;
margin-top:5px;
padding:12px 20px;
width:100%;
}
#login-form input[type="submit"]:hover {
background:#ea6e10;
}
.bubble
{
position:relative;
width:250px;
padding:0px;
background:#FFFFFF;
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
border:#ea6e10 solid 2px;
}
.bubble:after
{
content:'';
position:absolute;
border-style:solid;
border-width:15px 15px 0;
border-color:#FFFFFF transparent;
display:block;
width:0;
z-index:1;
bottom:-15px;
left:136px;
}
.bubble:before
{
content:'';
position:absolute;
border-style:solid;
border-width:16px 16px 0;
border-color:#ea6e10 transparent;
display:block;
width:0;
z-index:0;
bottom:-17px;
left:135px;
}
html登录面板代码:
<body> <div id="login-form" class="bubble" style="float:left;"> <h3>Login</h3> <fieldset> <input type="username" required value="username" onBlur="if(this.value=='')this.value='username'" onFocus="if(this.value=='username')this.value='' "> <!-- JS because of IE support; better: placeholder="username" --> <input type="password" required value="Password" onBlur="if(this.value=='')this.value='Password'" onFocus="if(this.value=='Password')this.value='' "> <!-- JS because of IE support; better: placeholder="Password" --> <p><a href="#">Forgot Password?</a></p> <input type="submit" value="Login"> </fieldset> </div> </body>
CSS login登录面板设计,运行效果如图所示:

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
用CSS3怎样做元素的动态左右翻转效果?在CSS中,我们要实现动态左右翻转效果可以使用CSS3中的animation属性给元素添加动画效果,下文有详细的介绍,有需要的朋友可以参考,接下来就跟随小编来一起学习一下吧!
这篇文章主要介绍了基于HTML代码实现图片碎片化加载功能,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
这篇文章主要介绍了CSS子元素跟父元素的高度一致的实现方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
css中flex-basis的使用:1、flex-basis指定了flex元素在主轴方向上的初始尺寸。2、如果不使用box-sizing来改变盒子模型,则该属性决定了flex元素内容盒的宽度或高度的大小。
本文将继续给大家介绍怎么用css实现一个带有渐变边框的圆。首先我给大家简单说一下实现思路:我将创建两个 div,一个是类名为outer_circle 的外部 div,另一个是类名为inner_circ
成为群英会员,开启智能安全云计算之旅
立即注册关注或联系群英网络
7x24小时售前:400-678-4567
7x24小时售后:0668-2555666
24小时QQ客服
群英微信公众号
CNNIC域名投诉举报处理平台
服务电话:010-58813000
服务邮箱:service@cnnic.cn
投诉与建议:0668-2555555
Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 ICP核准(ICP备案)粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008