css不同的cursor大合集
代码语言:html
所属分类:布局界面
代码描述:css不同的cursor大合集
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
box-sizing: border-box;
margin: 0;
}
.logo {
margin-bottom: 20px;
font-size: 50px;
color: #caccce;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
background-color: #f4f7fc;
}
.cursor__collection {
display: flex;
flex-wrap: wrap;
padding: 20px 0px 0px 30px;
background-color: #fff;
max-width: 900px;
min-height: 720px;
border-radius: 10px;
box-shadow: 7px 7px 15px rgba(55, 84, 170, 0.15),
-7px -7px 20px rgba(255, 255, 255, 1),
inset 0px 0px 4px rgba(255, 255, 255, 0.2),
inset 7px 7px 15px rgba(55, 84, 170, 0),
inset -7px -7px 20px rgba(255, 255, 255, 0),
0px 0px 4px rgba(255, 255, 255, 0);
transition: all 0.5s;
}
span.cursor-type {
display: inline-block;
margin: 10px;
border-radius: 10px;
height: 100px;
width: 100px;
background-color: #f4f7fc;
transition: all 0.5s;
text-align: center;
line-height: 8;
font-size: 12px;
}
span.cursor-type:hover {
margin: 10px;
border-radius: 10px;
box-shadow: 7px 7px 15px rgba(55, 84, 170, 0.15),
-7px -7px 20px rgba(255, 255, 255, 1),
inset 0px 0px 4px rgba(255, 255, 255, 0.2),
inset 7px 7px 15px rgba(55, 84, 170, 0),
inset -7px -7px 20px rgba(255, 255, 255, 0),
0px 0px 4px rgba(255, 255, 255, 0);
transition: all 0.5s;
}
.cursor-type:nth-of-type(1) {
cursor: default;
}
.cursor-type:nth-of-type(2) {
cursor: crosshair;
}
.cursor-type:nth-of-type(3) {
cursor: help;
}
.cursor-type:nth-of-type(4) {
cursor: move;
}
.cursor-type:nth-of-type(5) {
cursor: pointer;
}
.cursor-type:nth-of-type(6) {
cursor: progress;
}
.cursor-type:nth-of-type(7) {
cursor: text;
}
.cursor-type:nth-of-type(8) {
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0