当前位置:网站首页>用户列表 圆形头像并跟随小板块
用户列表 圆形头像并跟随小板块
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;
} 
边栏推荐
- 路由中的生命周期钩子 - activated与deactivated
- 图像加噪声与矩阵求逆
- buck电路boot电容短路和断路实测波形
- Flink实时仓库-DWD层(交易域-加购维度退化处理)模板代码
- 谷歌零碎笔记之JWT(草稿)
- Why does ETL often become ELT or even let?
- resize2fs: 超级块中的幻数有错(Bad magic number in super-block )
- 外包干了3年,跳槽后转自动化测试工资是原来的2倍,秘诀原来是......
- After 4 years of development and 13K, if you want to change to automated testing, can your salary still rise···
- spark学习笔记(七)——sparkcore核心编程-RDD序列化/依赖关系/持久化/分区器/累加器/广播变量
猜你喜欢

MySQL - multi table query

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

Cvpr2021 | multi view stereo matching based on self supervised learning (cvpr2021)

Nodejs安装教程

Thread synchronization - producers and consumers, tortoise and rabbit race, dual thread printing

Flink实时仓库-DWD层(流量域)模板代码

记 - 踩坑-实时数仓开发 - doris/pg/flink

Connecting PHP 7.4 to Oracle configuration on Windows

2022-07-28: what is the output of the following go language code? A:AA; B:AB; C:BA; D:BB。 package main import ( “fmt“ ) func main() { f

2D cartoon rendering - advanced skills
随机推荐
实现改变一段文字的部分颜色效果
Operator3-设计一个operator
20-40K| 梅卡曼德3D视觉算法/软件/产品经理招聘
[C language brush leetcode] 2332. The latest time to get on the bus (m)
Flink实时仓库-DWD层(kafka-关联mysql的lookup join)模板代码
[Charles' daily problems] when you open Charles, you can't use nails
WPF嵌套布局案例
LeetCode 879. 盈利计划
pytest合集(7)— 参数化
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
win11系统错误:由于找不到 iertutil.dll,无法继续执行代码。重新安装程序可能会解决此问题
Problems encountered in vmware16 installing virtual machines
Simulation volume leetcode [ordinary] 172. Zero after factorial
建木持续集成平台v2.5.2发布
MutationObserver文档学习
【charles日常问题】开启charles,使用不了钉钉
Cvpr2021 | multi view stereo matching based on self supervised learning (cvpr2021)
接口测试实战项目03:执行测试用例
Unity exploration plot access design analysis & process + code specific implementation
Homebrew brew update 长时间没反应(或卡在 Updating Homebrew...)