效果
文章来源:https://www.toymoban.com/news/detail-685464.html
源码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS Custom Shape Button</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="#"><span>Button</span></a>
</body>
</html>
css文章来源地址https://www.toymoban.com/news/detail-685464.html
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #cbe058;
}
a
{
position: relative;
padding: 15px 40
到了这里,关于25.CSS自定义形状按钮与悬停效果的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!