HTML fieldset标签的使用方法是什么,如何用于登录页面
Admin 2022-09-24 群英技术资讯 1276 次浏览
这篇文章主要讲解了“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进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
在css中,可以利用“text-align”属性让图片右对齐显示,该属性用于设置元素的水平对齐方式,当属性的值为right时,元素会向右对齐显示,只需要给元素添加“text-align:right;”样式即可。
本篇文章给大家分享一个CSS自定义计数器的使用小技巧,聊聊如何利用它实现长按点赞累积动画,希望对大家有所帮助!
用css怎样实现一个带尖角对话框效果?我们在一些聊天窗口,常能看到带尖角的对话框,那么这种对话框是怎样做的呢?其实现实这种对话框效果并不困难,这篇文章就给大家分享一下用CSS实现带尖角对话框效果的示例。
这篇文章主要给大家分享CSS计数器的内容,可能一些朋友不是很了解CSS计数器是什么以及CSS计数器怎样使用,在下文小编会给大家详细的介绍CSS计数器及其用法,下面跟随小编一起来学习一下吧。
这篇文章主要介绍了rem布局原理解析的相关资料,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
成为群英会员,开启智能安全云计算之旅
立即注册关注或联系群英网络
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