当前位置:网站首页>用户列表 圆形头像并跟随小板块
用户列表 圆形头像并跟随小板块
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;
}
边栏推荐
- Junda technology | applicable to "riyueyuan" brand ups wechat cloud monitoring card
- Record - step on the pit - real-time data warehouse development - doris/pg/flink
- 1172. The plate stack has a sequence table + stack
- 约瑟夫环问题
- tp6 使用 ProtoBuf
- mysql可以定时导出表格吗?
- 网上传说软件测试培训真的那么黑心吗?都是骗局?
- gin 参数验证
- Summary of OCR optical character recognition methods
- Leetcode-1331: array ordinal conversion
猜你喜欢
记 - 踩坑-实时数仓开发 - doris/pg/flink
ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法
MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)
Improved Pillar with Fine-grained Feature for 3D Object Detection论文笔记
Vscode remote debugging PHP solution through remotessh and Xdebug
以太网接口介绍
Operator3-设计一个operator
JS 鸡生蛋与蛋生鸡问题,Object与Function究竟谁出现的更早?Function算不算Function的实例?
Cvpr2022oral special series (I): low light enhancement
数组的子集能否累加出K
随机推荐
Unity sends a post request to the golang server for parsing and returning
VMware16创建虚拟机:无法创建新虚拟机,不具备执行此操作的权限
gin 参数验证
gin 服务退出
Comparison of advantages between can & canfd integrated test analysis software lkmaster and PCA Explorer 6 analysis software
WPF嵌套布局案例
Decompilation of wechat applet
Flink real time warehouse DWD layer (traffic domain) template code
彻底搞懂kubernetes调度框架与插件
HJ37 统计每个月兔子的总数 斐波那契数列
Student status management system based on C language design
npm install报错npm ERR Could not resolve dependency npm ERR peer
Win11vmware turns on the virtual machine and restarts on the blue screen and the solution that cannot be started
Redis Basics
spark学习笔记(七)——sparkcore核心编程-RDD序列化/依赖关系/持久化/分区器/累加器/广播变量
聊天机器人有何用处?有何类型?看完这些就明白了!
Redis基础篇
使用VsCode配置MySQL实现连接、查询、等功能
解决CSDN因版权不明而无法发布博客的问题
Some tips of vim text editor