当前位置:网站首页>用户列表 圆形头像并跟随小板块
用户列表 圆形头像并跟随小板块
2022-07-29 06:40:00 【STATICHIT静砸】
效果展示

首先 圆形头像的实现
.smallAvatar {
width: 70px;
height: 70px;
margin: auto;
position: absolute;
border:3px solid #cadee2;
border-radius: 50px;
}其中smallAvatar是放置头像模块的class属性
width,height:头像图片适应大小
margin:使图片在模块中间
position: absolute :绝对位置
boeder:设置边框粗细,线类型(此处solid是实线的意思),颜色
boeder-radius:圆角程度
其次有个重要的点就是头像模块的位置,我们要设置相对位置,要使头像相对于它所处的这张名片卡的位置,否则会出现拖动进度条,卡片滚动,头像位置不变的尴尬情况。
.personBroad1{
width: 60px;
height: 60px;
position:relative; 《===!!!!
top:5px;
left:5px;
} 
边栏推荐
- 以太网接口介绍
- [C language brush leetcode] 2332. The latest time to get on the bus (m)
- gin 服务退出
- Thread synchronization - producers and consumers, tortoise and rabbit race, dual thread printing
- 建木持续集成平台v2.5.2发布
- Sword finger offer II 115: reconstruction sequence
- 1172. 餐盘栈 有序列表+栈
- Nodejs安装教程
- WPF简单登录页面的完成案例
- 【C语言刷LeetCode】2332. 坐上公交的最晚时间(M)
猜你喜欢

VMware16创建虚拟机:无法创建新虚拟机,不具备执行此操作的权限

怎么会不喜欢呢,CICD中轻松发送邮件

Cvpr2022oral special series (I): low light enhancement

DM data guard cluster setup

Personal blog system (with source code)

Win11vmware turns on the virtual machine and restarts on the blue screen and the solution that cannot be started

Improved Pillar with Fine-grained Feature for 3D Object Detection论文笔记

图像加噪声与矩阵求逆

个人博客系统(附源码)

Nodejs安装教程
随机推荐
Vmware16 create virtual machine: cannot create a new virtual machine, do not have permission to perform this operation
Pod基本介绍
Fillder use
【Redis】Redis开发规范与注意事项
【C语言刷LeetCode】1054. 距离相等的条形码(M)
dba
MutationObserver文档学习
Cesium反射
我的个人网站不让接入微信登录,于是我做了这个
fillder使用
spark学习笔记(七)——sparkcore核心编程-RDD序列化/依赖关系/持久化/分区器/累加器/广播变量
Nodejs安装教程
OCR光学字符识别方法汇总
After 4 years of development and 13K, if you want to change to automated testing, can your salary still rise···
[C language brush leetcode] 2332. The latest time to get on the bus (m)
Leetcode 879. profit plan
Cesium reflection
基于C语言设计的学生成绩排名系统
DM data guard cluster setup
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of