当前位置:网站首页>Nice input edit box
Nice input edit box
2022-06-23 23:54:00 【xlj】
Start
design sketch
Code html part
<div class="inputDiv">
<input type="text" name="id" required>
<span class="inputText"> account number </span>
</div>
<div class="inputDiv">
<input type="password" name="password" required>
<span class="inputText"> password </span>
<input type="submit" value=" Sign in " name="inputSubmit" class="inputSubmit">
</div>css part
div.inputDiv {
width: 80%;
margin: 0 auto;
position: relative;
padding: 20px 0 0 0;
}
div.inputDiv input {
border: none;
background-color: transparent;
border-bottom: 2px solid #dddddd;
-webkit-tap-highlight-color: transparent;
padding: 10px;
outline: none;
width: 100%;
} div.inputDiv input:focus ~ span.inputText, div.inputDiv input:valid ~ span.inputText {
top: 0;
transition: all 100ms linear;
color: #4444ff;
} div.inputDiv input:focus, div.inputDiv input:valid {
border-bottom: 2px solid #4444ff;
}
div.inputDiv span.inputText {
position: absolute;
font-weight: 200;
top: 20px;
left: 10px;
transition: all 100ms linear;
}
div.inputDiv input.inputSubmit {
width: 100%;
display: inline-block;
margin-top: 10px;
padding: 10px 10px;
font-weight: 200;
/* background-color: #5050ff; */
color: #000000;
text-align: center;
cursor: pointer;
/* position: absolute; */
/* right: 0; */
-webkit-tap-highlight-color: transparent;
border-bottom: none;
font-size: 18px;
}边栏推荐
- 重载(Overload)和重写(Override)的区别?
- Goodbye, 2020, this bowl of poisonous chicken soup, I'll dry it first
- 微信小程序 图片验证码展示
- 6 大完整开源项目,一次学个够
- Cvpr2019/ image translation: transgaga: geometry aware unsupervised image to image translation
- Innovative lampblack supervision in the management measures for the prevention and control of lampblack pollution in Deyang catering service industry (Draft for comments)
- Startup process analysis of APP performance optimization
- AutoCAD -- summarize three methods of drawing rounded corners in CAD
- Notepad++实用功能分享(正则行尾行首替换常用方法、文本比对功能等)
- 【 GBASE的那些事儿】系列直播活动第02期《GBase 8s高可用技术及案例分析法》
猜你喜欢

微信录制视频转圈效果如何实现?

2022 Shandong Health Expo, Jinan International Health Industry Expo, China Nutrition and Health Exhibition

MySQL导致索引失效的情况详解

Six complete open source projects, learning enough at a time

How to achieve the turning effect of wechat video recording?

Three types of transactions in EF core (saveChanges, dbcontexttransaction, transactionscope)

One person even broke up a Netease cloud music Cloud Village

完整开源项目之诗词吧 APP

跟着CTF-wiki学pwn——ret2text

AUTOCAD——总结CAD画圆角的三种方式
随机推荐
Acrel-3000WEB电能管理系统在都巴高速的应用
Niuke.com: the double pointer problem of receiving rainwater
Graph theory (nearest common ancestor LCA)
一个人竟然撸了一个网易云音乐云村
fatal: The upstream branch of your current branch does not match the name of your current branch.
High imitation Betta app
再见,2020,这碗毒鸡汤,我先干了
Improvement of DC power distribution with open hall current sensor
Digital property management has become a trend. How can traditional property companies achieve digital butterfly change through transformation?
List<? Extensions T > and list <? Super T > difference
WPF效果之Expander+ListBox
Le roman du drapeau de l'imitation haute version flutter, apprenez - le
2018/GAN:Self-Attention Generative Adversarial Networks自我注意生成对抗网络
【Try to Hack】masscan
Cvpr2019/ image translation: transgaga: geometry aware unsupervised image to image translation
微信小程序中three.js的canvas非全屏情况下射线检测不准确问题解决方案
How to achieve energy-saving and reasonable lighting control in order to achieve the "double carbon" goal
Loop caused by add of sublist in list
【HackTheBox】 meow
Postman return value Chinese garbled????