<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>圆形的头像示例</title> <style> * { margin: 0; padding: 0; background-color: #eeeeee; } .header-img { 150px; height: 150px; border: 3px solid white; border-radius: 100%; overflow: hidden; } .header-img>img { max- 100%; } </style> </head> <body> <div class="header-img"> <img src="https://q1mi.github.io/Blog/asset/img/head_img.jpg" alt=""> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>滚动背景图示例</title> <style> * { margin: 0; } .box { 100%; height: 500px; background: url("https://www.luffycity.com/static/img/width-bank.1c9d1b0.png") no-repeat center center; background-attachment: fixed; } .d1 { height: 500px; background-color: tomato; } .d2 { height: 500px; background-color: steelblue; } .d3 { height: 500px; background-color: mediumorchid; } </style> </head> <body> <div class="d1"></div> <div class="box"></div> <div class="d2"></div> <div class="d3"></div> </body> </html>
【推广】
免费学中医,健康全家人
原文地址:https://www.cnblogs.com/jiangchunsheng/p/8625808.html
- 推荐文章
- LL(1)文法
- 递归下降分析实验报告
- 字符串、组合数据类型练习
- java零基础之常见java面试题
- java零基础之【Lombok】简化类设计神器
- 个人知识管理系统Version1.0开发记录(03)
- 个人知识管理系统Version1.0开发记录(01)
- 个人知识管理系统Version1.0开发记录(02)
- 【oracle笔记1】增删改,数据类型,用户操作
- 【oracle笔记2】约束
- 【oracle笔记4】存储过程
- 【oracle笔记3】多表查询
- 朝花夕拾
- vue:属性、内容:访问、增加
- Vue、JavaScript:let、const
- 人脸识别算法的概述
- Vue:属性
- vue:命名
- 深度学习的一般认识
- arcgis server javascript api 唯一值渲染
- linux每天一小步cp命令详解
- linux每天一小步ls命令详解
- linux每天一小步cd命令详解
- linux每天一小步rm命令详解
- linux每天一小步touch命令详解
- linux每天一小步mkdir命令详解
- input、textarea等输入框输入中文时,拼音在输入框内会触发input事件的问题
- (转)周志华:“深”为什么重要,以及还有什么深的网络
- CSS画行内分隔线
- 百度之星资格赛E:C++ 与Java