您正在使用 IPV4 [44.192.115.114] 访问本站,您本次已经查看了 1 页
用户名: 密 码: 验证码:     用QQ登录本站
首页 软件 编程 笑话 知识 公告 台风 日历 计算器
悟空收录网       [公益]保护绿色环境,构建和谐社会      

【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中      
[公益] 地球是我家,绿化靠大家      
2023年 中秋节 -2
2023年 国庆节 0
2024年 元 旦 92
2024年 春 节 132
 
您现在的位置:首页 >> 脚本代码 >> 内容
本类新增
本类热门文章
css弧边选项卡的项目实践
内容摘要: !DOCTYPEhtmlhtmllang='en'headmetacharset='UTF-8'metahttp-equiv='X-UA-Compatible'content='IE=edge'metaname='viewport'content='width=device-width,initial-scale=1.0'titleDocument/titl......
<!DOCTYPEhtml>

<htmllang="en">

<head>

<metacharset="UTF-8">

<metahttp-equiv="X-UA-Compatible"content="IE=edge">

<metaname="viewport"content="width=device-width,initial-scale=1.0">

<title>Document</title>

</head>

<style>

.g-container{

position:relative;

width:300px;

height:100px;

background:red;

border:1pxsolid#277f9e;

border-radius:10px;

overflow:hidden;

}

.g-inner{

position:absolute;

width:150px;

height:50px;

background:#fee6e0;

bottom:0;

border-radius:020px020px;

transform:perspective(40px)scaleX(1.4)scaleY(1.5)rotateX(20deg)translate(-10px,0);

transform-origin:50%100%;

}

.g-inner::before{

content:"";

position:absolute;

right:-10px;

width:10px;

height:10px;

top:40px;

background:radial-gradient(circleat100%0,transparent,transparent9.5px,#fee6e010px,#fee6e0);

}

.g-after{

position:absolute;

width:150px;

height:50px;

background:#6ecb15;

bottom:49px;

right:0;

border-radius:20px020px0;

transform:perspective(40px)scaleX(1.4)scaleY(-1.5)rotateX(20deg)translate(14px,0);

transform-origin:53%100%;

}

.g-after::before{

content:"";

position:absolute;

left:-10px;

top:40px;

width:10px;

height:10px;

background:radial-gradient(circleat00,transparent,transparent9.5px,#6ecb1510px,#6ecb15);

}

.g-inner-text,.g-after-text{

position:absolute;

width:150px;

height:50px;

line-height:50px;

text-align:center;

}

.g-inner-text{

top:50%;

left:0;

}

.g-after-text{

top:50%;

right:0;

}

</style>

<body>

<divclass="g-container">

<divclass="g-inner"></div>

<divclass="g-after"></div>

<divclass="g-inner-text">选项卡1</div>

<divclass="g-after-text">选项卡2</div>

</div>

</body>

</html>

版权声明:本内容来源于网络,如有侵犯您的版权,请联系站长,本站收到您的信息后将及时处理。
上一篇:JavaScript制作的可折叠弹出式菜 下一篇:Vue实现动态显示表单项填写进度功能
发布日期:2023/5/19
手机扫二维码直达本页
发布时间:12:23:47
点  击:7
录  入:壹家怡园
相关文章
Baidu
YiJiaCMS 7.2.2 build230830(MSSQL) 闽ICP备05000814号-1
本空间由腾讯云(轻量应用服务器)提供,Cloudflare提供加速防护
Copyright©2000-2023