首页
友情链接
留言
统计
推荐
计算机网络技术视频
华为ensp视频
Linux服务器视频
Windows服务器视频
Search
1
华为ICT概述
37 阅读
2
kali换国内源
20 阅读
3
Windows server使用命令行形式安装林根级域和加入域
19 阅读
4
欢迎大家进入我的博客世界
16 阅读
5
rocky(Linux),配置DNS服务器和备用DNS服务器
16 阅读
网络技术
Windows服务器
Linux服务器
网络设备
前端
html
css
JavaScript
技能大赛
网络建设与运维
信息安全与评估
网络系统管理
实用工具
宝藏网站
登录
/
注册
Search
标签搜索
JavaScript
css
网络安全
html
宝藏网站
实用工具
网络设备
网络技术
Linux服务器
kali
网络建设与运维
windows服务器
技能大赛
公告
网络系统管理
信息安全与评估
ctf
渝
累计撰写
207
篇文章
累计收到
0
条评论
首页
栏目
网络技术
Windows服务器
Linux服务器
网络设备
前端
html
css
JavaScript
技能大赛
网络建设与运维
信息安全与评估
网络系统管理
实用工具
宝藏网站
页面
友情链接
留言
统计
推荐
计算机网络技术视频
华为ensp视频
Linux服务器视频
Windows服务器视频
搜索到
207
篇与
的结果
2024-09-30
40、怪异盒子
<!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> <style> /* 怪异盒子的宽度是加内边距和边框 box-sizing 可选值: content-box{默认值} border-box{挤压内部} */ .box1{ width: 200px; height: 200px; background-color: red; padding: 30px; border: 10px solid black; /*标准盒模型*/ box-sizing: content-box; } .box2{ width: 200px; height: 200px; background-color: green; margin-top: 100px; padding: 30px; border: 10px solid black; /*怪异盒模型*/ box-sizing: border-box; } </style> </head> <body> <div class="box1"></div> <div class="box2"></div> </body> </html>
2024年09月30日
2 阅读
0 评论
0 点赞
2024-09-30
39、导航栏
<!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> <style> .nav{ width: 800px; height: 40px; background-color:#008080; margin:0 auto; padding: 0; } .nav li{ list-style:none; float: left; height: 40px; line-height: 40px; } .nav a{ text-decoration:none; color: orange; font-size: 20px; display: block; padding: 0px 30px; } .nav a:hover{ background-color:green; } </style> </head> <body> <ul class="nav"> <li> <a href="#">网站首页</a> </li> <li> <a href="#v3">专业教程</a> </li> <li> <a href="#v4">作品展示</a> </li> <li> <a href="#v7">家乡山水</a> </li> </ul> </body> </html>
2024年09月30日
4 阅读
0 评论
0 点赞
2024-09-30
38、渐变
<!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> <style> /* 一、渐变:使背景颜色逐渐变化的效果 1.线性渐变 background-image: linear-gradient(to top ,#c7edcc,#fde6e0,#dce2f1); 第一个参数可选值为: to top/right/botton/top right/... 第二个参数到第n个参数为需要渐变的颜色,至少两种颜色 2.径向渐变 background: radial-gradient(ellipse,#c7edcc 50%,#fde6e0); 第一个参数可选值为: circle 圆形 ellipse 椭圆形 第二个参数到第n个参数为需要渐变的颜色,至少两种颜色 */ .box1{ width: 300px; height: 300px; margin: 0 auto; /*background-image: linear-gradient(90deg ,#c7edcc,#fde6e0,#dce2f1);*/ background: radial-gradient(ellipse,#c7edcc 50%,#fde6e0); } </style> </head> <body> <div class="box1"></div> </body> </html>
2024年09月30日
5 阅读
0 评论
0 点赞
2024-09-30
37、背景
<!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> <style> /* 一。背景 1.background-color 设置背景颜色 transparent 透明的(默认值) 2.background-image 设置背景图片 可选值: none 无背景图片(默认值) url()背景图片路径 3.background-repeat 设置背景平铺 可选值: repeat 平铺(默认值) no-repeat 不平铺 repeat-x 水平平铺 repeat-y 垂直平铺 4.background-position 设置背景图像位置 background-position:x y x代表水平位置 y代表垂直位置,x和y的值可以是: 1.像素 2.百分比 3.关键字 top right bottom left center 注意: 1.X和y的值可以混合使用,例如:background-position:100px center; 2.若我们只规定了一个值,另一个默认值为center 5。background-attachment 设置背景图形的滚动方式 可选值: scroll 背景图片会随着页面中其余部分滚动(默认值) fixed 当页面中其余部分滚动,背景图片位置不变 二、背景的简写属性:background background:背景颜色 背景图片 背景平铺 背景图像滚动 背景图片位置; 上述顺序无要求 */ body{ height: 2000px; /*背景简写属性*/ background: transparent url(../周渝皓的个人网站/tp/mm.jpg) no-repeat fixed center center; } .box1{ width: 600px; height: 600px; margin: 10px auto; /*设置背景颜色*/ background-color: #c7edcc; /*设置背景图片*/ background-image: url(../周渝皓的个人网站/tp/mm.jpg); /*设置背景平铺*/ background-repeat: no-repeat; /*设置背景图片位置*/ background-position: 100px center; /*设置背景图片滚动*/ background-attachment: scroll; } </style> </head> <body> <div class="box1"></div> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!Lorem ipsum dolor sit amet consectetur adipisicing elit. Atque temporibus vel voluptates ea perspiciatis recusandae, ipsam, natus deserunt iure corporis officiis earum reprehenderit nam cum, ipsum saepe! Maxime, atque illum!</p> </body> </html>
2024年09月30日
5 阅读
0 评论
0 点赞
2024-09-30
36、z-index叠放层次
<!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>z-index叠放层次</title> <style> /* 一、z-index属性用于设置元素的叠放层次,属性值可以为一个整数,整数值越大越优先显示 注意:z-index 只对开启了定位的元素有效 */ div{ width: 200px; height: 200px; } .box1{ background-color: #c7edcc; position: relative; left: 50px; top: 100px; z-index: -2; } .box2{ background-color: #fed6e0; position: absolute; left: 150px; top: 150px; z-index: -1; } .box3{ background-color: #dce2f1; float: left; } </style> </head> <body> <div class="box1">相对定位</div> <div class="box2">绝对定位</div> <div class="box3">浮动盒子</div> </body> </html>
2024年09月30日
5 阅读
0 评论
0 点赞
1
...
30
31
32
...
42