<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录页面</title>
/*总体的样式*/
<style>
/*盒子样式*/
#box{
width: 350px; //宽
height: 450px; //高
border: 1px solid black; //边框
border-radius: 10px; //边框弧度
font-family: 黑体; //字体
letter-spacing:8px; //段间距
word-spacing: 10px; //字间距
line-height: 40px; //行高
font-size: 18px; //字大小
padding: 20px; //内边框
}
/*给'注册'赋予样式*/
.register{
width:280px ; //宽
height: 50px; //高
background-color: skyblue; //背景颜色
border-radius: 10px; //边框弧度
}
/*将所有边框都改变*/
*{
border-radius: 5px; 边框弧度
}
/*使用class选择器,赋予number宽高和边框*/
.number{
width: 185px; //宽
height: 27px; //高
border-width: 1px; //边框宽度
}
/*id选择器*/
#two{
width: 55px; //宽
border-width: 1px; 边框宽度
}
/*id选择器*/
#phone{
width: 103px; //宽
}
/*class 选择器*/
.boxs{
zoom: 75%; //清除浮动
color: darkgray; //颜色
}
/*class选择器*/
.box_a{
width: 50px; //宽
height: 50px; //高
background-image: url("../image/04.jpg "); //背景图片
background-repeat: no-repeat; // 是否平铺
background-size: 50px 25px; //背景尺寸
position: relative; //定位 相对定位
left: 310px; //定位后左移
bottom: 32px; //定位后下移
}
</style>
</head>
<body>
<div id="box">
<h1>请注册</h1>
<p style="color: darkgray">已有帐号?<a href="https://im.qq.com/index">登录</a></p>
<form action="" method="post">
<label for="name">用户名</label>
<input type="text" placeholder="请输入用户名" id="name" class="number"> <br>
<label for="phone">手机号</label>
<select name="" id="two" class="number">
<optgroup>
<option style="" class="">+86</option>
</optgroup>
</select>
<input type="text" placeholder="请输入手机号" id="phone" class="number"> <br>
<label for="mima">密?码</label>
<input type="password" placeholder="请输入密码" id="mima" class="number"> <br>
<label for="mima">验证码</label>
<input type="password" placeholder="请输入验证码" id="is" class="number">
<div class="box_a"></div>
<div class="boxs">
<input type="radio" id="" class="accept">阅读并接受协议<br>
</div>
<input type="submit" value="注册" class="register" >
</form>
</div>
</body>
</html>
在这里插入图片描述
网站首页 > 基础教程 正文
猜你喜欢
- 2024-07-20 HTML 表格(html表格颜色)
- 2024-07-20 带圆角的虚线边框?CSS 不在话下(css圆角效果)
- 2024-07-20 css3实现的鼠标悬停特效,鼠标悬停给图片加边框html页面前端源码
- 2024-07-20 CSS基础知识(CSS基础知识点总结)
- 2024-07-20 分享几个css实用技巧(css示例)
- 2024-07-20 css3的边框属性(css边框样式属性)
- 2024-07-20 计算机二级Web(4):CSS基础 (下)(计算机等级考试二级web考什么)
- 2024-07-20 前端小知识 | CSS 零宽度边框,实用技巧
- 2024-07-20 CSS3实现html栏目边框过渡动画小效果
- 2024-07-20 css实现渐变色圆角边框(css圆形边框渐变色)
- 02-08小白入门必知必会-PostgreSQL-15.2源码编译安装
- 02-08pgadmin 出现 连接错误,密码不正确怎么解决?
- 02-08PostgreSQL10~14版本以来的新特性史上最全总结
- 02-08PostgreSQL开发与实战(2)常用命令
- 02-08AI编程之手把手教你在CentOS安装Postgresql的Vector向量数据库
- 02-08Maven 干货 全篇共:28232 字。预计阅读时间:110 分钟。建议收藏!
- 02-08PostgreSQL高可用套件repmgr+pgpool
- 02-08数据库激荡 40 年,深入解析 PostgreSQL、NewSQL 演进历程
- 最近发表
-
- 小白入门必知必会-PostgreSQL-15.2源码编译安装
- pgadmin 出现 连接错误,密码不正确怎么解决?
- PostgreSQL10~14版本以来的新特性史上最全总结
- PostgreSQL开发与实战(2)常用命令
- AI编程之手把手教你在CentOS安装Postgresql的Vector向量数据库
- Maven 干货 全篇共:28232 字。预计阅读时间:110 分钟。建议收藏!
- PostgreSQL高可用套件repmgr+pgpool
- 数据库激荡 40 年,深入解析 PostgreSQL、NewSQL 演进历程
- 【技术文章】PostgreSQL 基础知识:角色和特权
- 2016年开发者应该掌握的十个Postgres技巧
- 标签列表
-
- gitpush (61)
- pythonif (68)
- location.href (57)
- tail-f (57)
- pythonifelse (59)
- deletesql (62)
- c++模板 (62)
- css3动画 (57)
- c#event (59)
- linuxgzip (68)
- 字符串连接 (73)
- nginx配置文件详解 (61)
- html标签 (69)
- c++初始化列表 (64)
- exec命令 (59)
- canvasfilltext (58)
- mysqlinnodbmyisam区别 (63)
- arraylistadd (66)
- node教程 (59)
- console.table (62)
- c++time_t (58)
- phpcookie (58)
- mysqldatesub函数 (63)
- window10java环境变量设置 (66)
- c++虚函数和纯虚函数的区别 (66)