gpt4 book ai didi

css - CSS3 六边形

转载 作者:行者123 更新时间:2023-12-03 15:08:20 27 4
gpt4 key购买 nike

可以用纯 CSS3 创建这样的六边形吗?

enter image description here

谢谢你的帮助!

最佳答案

一个简单的搜索就找到了:CSS Hexagon Tutorial

引用自网站:
Put a 104px × 60px div with a background colour between them and you get (the hexagon):

width: 0;
border-bottom: 30px solid #6C6;
border-left: 52px solid transparent;
border-right: 52px solid transparent;

width: 104px;
height: 60px;
background-color: #6C6;

width: 0;
border-top: 30px solid #6C6;
border-left: 52px solid transparent;
border-right: 52px solid transparent;

关于css - CSS3 六边形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17896791/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com