Npcink Blog
切换菜单
本页目录6 节

椭圆框

<div class="n-fauxma">简单椭圆框
<style>
.n-fauxma {
-webkit-box-align: center;
align-items: center;
backface-visibility: hidden;
background-color: rgb(255, 66, 77);
border-radius: 9999px;
border: 1px solid rgb(255, 66, 77);
box-sizing: border-box;
cursor: pointer;
display: inline-flex;
font-weight: 500;
height: unset;
-webkit-box-pack: center;
justify-content: center;
padding: 0.46875rem 1rem;
position: relative;
pointer-events: unset;
text-align: center;
text-decoration: none;
text-transform: none;
transition: all 300ms cubic-bezier(0.19, 1, 0.22, 1) 0s;
user-select: none;
white-space: unset;
width: 100%;
color: rgb(255, 255, 255) !important;
font-size: 0.875rem !important;
}
</style></div>

亚克力

<div style="background-color: rosybrown !important;">
<div class="btn-light">
</div>
</div>
<style>
.btn-light {
color: #424446 !important;
-webkit-backdrop-filter: blur(5px);
backdrop-filter: blur(5px);
background-color: rgba(250, 250, 250, 0.5) !important;
border-color: transparent !important;
width: 200px;
height: 200px;
margin: 0 auto;
border-radius: 100%;
}
.btn-light:hover {
background-color: rgba(255, 255, 255, 0.8) !important;
}
</style>

按钮:1

代码来源:详情

<div class="bg-go">
<div class="go">
<span>去天猫商城</span>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAgUlEQVQokYXOTQqDQAyG4dBbdeUpWn9v5h16quJCQdy40corQzNQhm9s4Mss5iGJAT0wAw1gKqFNfOsDdDn0cIC/rUIhzwQ2CoWUCawVCqkSWCmkYKmQ+arD4XYzXYOZ7f6zqykFsPqUBbj/BenhEvyiLIjoEkQ0XoGIXsA7BwA7AYXPxrhaejrsAAAAAElFTkSuQmCC" class="arrow">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAx0lEQVQokX3RvQrCMBDA8b91ENx8hWZJnsLFxc3Rtj6Br+Ti16LuPoHgIyRLRx0FZ5HKaVpSaz1ICNwvd+GC1fHC6vhmdZwWRcGvFQETYACsnVEzfoSgOfAEusDSGZV9s0jb/ACkAVw5o9Iakk3bfA9kAZTWSQ15uANmAdw4o6aS68jrw/CJrYdyIWsgPjDxUDo9oob4xFWS/txEzqghcAR6wB0Y1VAA+h6Mtc3PFWoD1Qj+gfcIrI7/grKSfEsrKNEJuLQBgBczxWNEIEZ4tQAAAABJRU5ErkJggg==" class="arrow2">
</div>
</div>
<style>
.bg-go {
background-color: #d72822;
padding: 2em;
}
.bg-go {
display: flex;
}
.go {
text-align: center;
border: 1px solid #fff;
color: #fff;
border-radius: 16px;
padding: 0 1.5em;
margin: 48px 0;
margin-top: 16px;
line-height: 2em;
font-size: 1rem;
transition: .25s;
cursor: pointer;
position: relative;
}
.go {
max-width: 136px;
margin: 0 auto;
}
.go:hover {
background: #fff;
color: #d72822;
}
.go:hover .arrow2 {
opacity: 1;
}
.go span {
display: inline-block;
transform: translateY(1px) translateX(-4px);
}
/*图标*/
.go .arrow,
.go .arrow2 {
top: 50%;
right: 8px;
transform: translateY(-50%) scale(0.8);
position: absolute;
}
.go .arrow2 {
transition: .25s;
opacity: 0;
}
</style>

按钮:2

<div class="n-20210107">
<div class="tab2-step">
<div class="step-item">
<a class="step-item-main" href="#" target="_blank" rel="noopener">
<div class="step-num">1</div>
<div class="step-content">
<div class="step-name">注册阿里云账号</div>
</div>
</a>
</div>
<div class="step-item">
<a class="step-item-main" href="#" target="_blank" rel="noopener">
<div class="step-num">2</div>
<div class="step-content">
<div class="step-name">完成实名认证</div>
</div>
</a>
</div>
<div class="step-item">
<a class="step-item-main" href="#" target="_blank" rel="noopener">
<div class="step-num">3</div>
<div class="step-content">
<div class="step-name">完成学生认证</div>
</div>
</a>
</div>
<div class="step-item"><a class="step-item-main" href="#" target="_blank" rel="noopener"><div class="step-num">4</div><div class="step-content"><div class="step-name">专享优惠购买</div></div></a></div>
</div>
</div>
<style>
.n-20210107 {
width: 1180px;
position: absolute;
top: 58em;
right: -25em;
}
.tab2-step {
padding: 19px 0;
display: flex;
justify-content: space-around;
background-image: linear-gradient(90deg, #ff9524 1%, #ff6a00);
}
.tab2-step .step-item {
position: relative;
}
/*虚线*/
.tab2-step .step-item:before {
position: absolute;
top: 50%;
content: "";
width: 160px;
right: -160px;
background: linear-gradient(90deg, #ffc58d, #ffc58d 7px, transparent 0, transparent);
background-size: 14px 100%;
height: 1px;
}
/*内容*/
.tab2-step .step-item .step-item-main {
width: 185px;
height: 50px;
display: flex;
background-image: linear-gradient(90deg, transparent, transparent 25px, hsla(0, 0%, 100%, .8) calc(4% + 25px), #fff);
position: relative;
z-index: 2;
border-bottom: none;
}
.tab2-step .step-item .step-item-main .step-num {
width: 50px;
height: 50px;
border: 5px solid #ffd5b7;
flex-shrink: 0;
border-radius: 50%;
background: #fff;
line-height: 40px;
text-align: center;
font-weight: 500;
font-size: 20px;
color: #ff5e00;
box-sizing: border-box;
}
/*核心*/
.tab2-step .step-item .step-item-main .step-content {
display: flex;
flex-direction: column;
justify-content: center;
font-weight: 500;
font-size: 14px;
color: #ff6a00;
padding: 0 7px;
}
/*三角形*/
.tab2-step .step-item:after {
content: "";
position: absolute;
border: 10px solid transparent;
border-left-color: #ffc58d;
border-left-width: 18px;
top: 50%;
transform: translateY(-50%);
right: -80px;
}
.tab2-step .step-item:last-child::after,
.tab2-step .step-item:last-child::before {
display: none;
}
</style>

按钮:3

<a class="text-action " href="#" target="_blank" rel="noopener">查看全部代金券
<i class="right-icon-action aliyun-icon-arrow_right"></i></a>
<style>
.text-action {
line-height: 20px;
background-image: linear-gradient(90deg, #ff4f1d, #ff1866);
height: 42px;
border-radius: 32px;
display: inline-block;
padding: 0 39px;
padding-right: 63px;
line-height: 42px;
color: #fff!important;
font-size: 16px;
position: relative;
text-decoration: none;
transition: color .3s;
border-bottom: none!important;
}
/*图标*/
.text-action .right-icon-action {
background: #fff;
width: 32px;
height: 32px;
border-radius: 50%;
color: #eb2629;
display: inline-block;
position: absolute;
right: 5px;
top: 5px;
line-height: 32px;
font-size: 24px;
font-family: "aliyun-icon" !important;
font-style: normal;
-webkit-font-smoothing: antialiased;
text-align: center;
}
.aliyun-icon-arrow_right:before {
content: ">";
}
</style>

下载框

<div class="dahuzi_file_download">
<div class="background-primary">
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2179" width="30"
height="30">
<path
d="M256 85.333333a85.333333 85.333333 0 0 0-85.333333 85.333334v682.666666a85.333333 85.333333 0 0 0 85.333333 85.333334h512a85.333333 85.333333 0 0 0 85.333333-85.333334V341.333333l-256-256H256m0 85.333334h298.666667v213.333333h213.333333v469.333333H256V170.666667m85.333333 341.333333v85.333333h341.333334v-85.333333H341.333333m0 170.666667v85.333333h213.333334v-85.333333H341.333333z"
fill="#ffffff" p-id="2180"></path>
</svg>
</div>
<div class="file_download_info">
<h3 class="file_download_title">R复古主题</h3>
<div class="file_download_subtitle"><small>一款优秀的WordPress个人博客主题</small></div>
</div>
<div class="file_download_but">
<a rel="nofollow noopener" target="_blank" href="#">
<i class="n-fa"></i> 官方购买</a>
</div>
</div>
<style>
.dahuzi_file_download {
padding: 20px;
background-color: #3f51b5;
display: flex;
flex-wrap: wrap;
border-radius: 4px;
max-width: 808px;
margin: 2em auto;
box-sizing: border-box;
}
/*第一个*/
.dahuzi_file_download .background-primary {
height: 54px !important;
width: 54px !important;
line-height: 70px;
text-align: center;
background-color: #4caf50;
display: inline-block;
margin-right: 15px;
border-radius: 4px;
}
/*第二个*/
.dahuzi_file_download .file_download_info {
flex: 1;
}
/*标题*/
.dahuzi_file_download .file_download_title {
font-size: 1rem;
line-height: 1.4;
text-align: left;
margin-bottom: 5px;
margin-top: 5px;
color: #fff;
}
/*描述*/
.dahuzi_file_download .file_download_subtitle {
font-size: 12px;
color: #d2d2d2;
}
/*第三个*/
.dahuzi_file_download .file_download_but {
margin-left: 15px;
background-color: #4caf50;
height: 35px;
margin-top: 9px;
border-radius: 3px;
padding-top: 5px;
/*调整位置*/
box-sizing: border-box;
}
.dahuzi_file_download .file_download_but a {
color: #fff;
font-size: 14px;
padding: 10px 15px;
border-bottom: 0px;
}
.dahuzi_file_download .file_download_but a .n-fa::before {
content: "★";
font-style: normal;
}
</style>