leader-line实现列表悬浮多彩指引线显示关系效果代码
代码语言:html
所属分类:其他
代码描述:leader-line实现列表悬浮多彩指引线显示关系效果代码
代码标签: leader-line 列表 悬浮 多彩 指引线 显示 关系
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300&family=Roboto+Mono&family=Roboto+Slab:wght@700&display=swap" rel="stylesheet">
<style>
:root {
--theme1: #5f33e1;
--theme2: #ffe5a4;
--theme3: #f778ba;
--theme4: #ebe4ff;
--theme5: #f3f1f8;
--theme6: #ffffff;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
border: 0;
}
body {
background: rgb(95, 51, 225);
background: linear-gradient(
319deg,
rgba(95, 51, 225, 0.7) 22%,
rgba(247, 120, 186, 0.7) 61%,
rgba(235, 228, 255, 0.7) 100%
);
height: 100vh;
margin: 0;
padding: 0;
width: 100vw;
}
h2 {
font-family: "Roboto Condensed", sans-serif;
font-size: 1.25rem;
font-weight: bold;
margin-top: 20px;
margin-bottom: 30px;
}
ol {
counter-reset: my-awesome-counter;
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
ol li {
background-color: var(--theme5);
border-radius: 20px;
counter-increment: my-awesome-counter;
font-family: "Roboto Condensed", sans-serif;
font-size: 0.8rem;
margin-bottom: 1rem;
outline-offset: -5px;
padding: 20px;
padding-left: 70px;
position: relative;
top: 0;
transit.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0