CSS 圆角按钮

快乐打工仔 分类:实例代码

CSS 圆角按钮属于前端实例代码,有关更多实例代码大家可以查看

分享一段代码实例,它实现了圆角按钮效果,并且带有阴影效果。

代码实例如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="https://www.pipipi.net/" />
<title>前端教程网</title>
<style>
button {
  width: 140px;
  height: 40px;
  background: green;
  border: 1px solid green;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 7px 15px 15px gray;
}
</style>
</head>
<body>
  <button type="reset">前端教程网</button>
</body>
</html>

上面的代码实现了我们的要求,更多内容参阅相关阅读。

相关阅读:

(1).border-radius 参阅 CSS border-radius 一章节。

(2).box-shadow 参阅 CSS box-shadow 一章节。

CSS 圆角按钮,这样的场景在实际项目中还是用的比较多的,关于CSS 圆角按钮就介绍到这了。

回复

我来回复
  • 暂无回复内容