非常简单的卡片,这个是今天没事刷抖音看见的就弄了一下!可以自己替换图片。
```<?<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>卡片</title> </head> <body> <div class="center"> <div class="right-class"> <img class="img-class" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Fa6%2F7b%2Fee%2Fa67beeeb22249e3d8ee99de38ae509d0.jpeg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1650608335&t=bd8b1a6c84b9b2aef7d9b5a5b241d8a9"> </div> <p class="time-class">5.20</p> <p class="text-class">不悦儿童</p> <img class="avater-class" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Fa6%2F7b%2Fee%2Fa67beeeb22249e3d8ee99de38ae509d0.jpeg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1650608335&t=bd8b1a6c84b9b2aef7d9b5a5b241d8a9"> <div class="status-class"> <div></div> <div></div> <span>状态</span> </div> </body> <style> .img-class{ position: relative; width: 200px; height: 100%; bottom: 30px; } .right-class{ position: absolute; width: 200px; height: 200px; right: 3px; } .status-class span{ position: absolute; top: 0; font-size:1rem; right: 0%; transform: scale(0.58); line-height: 15px; } .status-class div:nth-child(2){ position: absolute; width:10px; height: 1px; top: 7px; background-color: #999; left: 11%; } .status-class div:nth-child(1){ position: relative; width: 1px; height: 10px; top: 2px; background-color: #999; left: 20%; } .status-class{ position: relative; width: 45px; color: #999; text-align: center; left: 23%; top: 8%; height: 15px; border-radius: 10px; border: 1px solid #999; } .text-class{ position: relative; font-size: 15px; left: 5%; } .time-class{ position: relative; font-size: 12px; font-weight: 600; left: 5%; } .avater-class{ position: relative; width: 15%; left: 5%; border-radius: 5px; } .center{ position: relative; margin: auto; box-shadow:0 0 6px 2px #999; top: 40%; width: 22%; height: 200px; min-width: 350px; max-width: 200px; border:1px solid rgb(192, 189, 189) } </style> </html>```
温馨提示:
本文最后更新于
2022年3月24日 10:10
,若内容或图片失效,请在下方
留言
或联系
酷库博客站长。
THE END
- 本文链接:
- https://zxki.cn/wydm/3167.html
- 版权声明:本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!
请登录后发表评论
注册
停留在世界边缘,与之惜别