锦方的个人网页 · 如果有一天你突然想起了我


css 表单

目录



代码:

<html>
<head>
<style>
input[type=text]{
    width:50%;
    padding:12px 20px;
    margin:8px 0;
    box-sizing:border-box;
    border:3px solid #ccc;
    -webkit-transition:0.5s;
    outline:none;
    border-radius:5px;
}
input[type=text]:focus{
    border:3px solid red;
}
input[type=password]{
    width:50%;
    padding:12px 20px;
    margin:8px 0;
    box-sizing:border-box;
    border:3px solid #ccc;
    -webkit-transition:0.5s;
    outline:none;
}
input[type=password]:focus{
    border:3px solid red;
    background-color:#000;
}
select{
    width:50%;
    padding:16px 20px;
    margin:none;
    border-radius:4px;
    background-color:#f1f1f1;
}
input[type=reset],input[type=submit]{
    background-color: #4caf50;
    border:none;
    color:white;
    padding:16px 50px;
    text-decoration:none;
    margin:6px 2px;
    cursor:pointer;
    margin-left:40px;
}
</style>
</head>
<body>
<form>
<label for="fname"> 姓名:</label>
<input type="text" id="fname" name="fname" value="pppp"></input></br>
<label for="fname">密码:</label>
<input type="password" id="lname" name="lname"maxlength="1"></input></br>
<label for="fname">地址:</label>
<select id="country"name="country">
    <option value="aa">11</option>
    <option value"bb">22</option>
</select></br>
<input type="reset" value="重填">
<input type="submit" value="提交">
</form>
</body>
</html>

系列:notes

该系列自动来自分类: notes

  1. Debian创建新用户和设置防火墙
  2. mac在Debian安装wireguard和使用
  3. 再也不买不能解bl的手机了
  4. Firefox设置
  5. debian安装FFmpeg来合并youtube音频
  6. css 扩散列表
  7. 两个练习
  8. css RWD
  9. css 图片
  10. css 提示
  11. css 下拉
  12. css 表单 (当前)
  13. css 导航栏
  14. css 单词
  15. HTML SVG
  16. HTML Canvas
  17. HTML input
  18. HTML 结构
  19. 电气施工图说明
  20. china uses dropbox
  21. Nginx installs SSL certificates
  22. debian install shadowsocks
  23. Visual studio code set the python environment
  24. install hexo

下一篇推荐

系列继续阅读

css 导航栏