CSS 彩虹按钮效果

 


<template>
	<view class="content">
	  <button class="btn">彩虹按钮</button>
	</view>
</template>

<script>

</script>

<style>
	body{
		background-color: #000;
	}
	.content {
		margin-top: 300px;
	
	}

	
	.btn {
	  width: 170px;
	  height: 60px;
	  font-size: 18px;
	  background: #fff;
	  border: none;
	  border-radius: 50px;
	  color: #000;
	  outline: none;
	  cursor: pointer;
	  transition: all 0.4s;
	  align-items: center;
	  display: flex;
	  justify-content: center;
	}
	
	.btn:hover {
	  box-shadow: inset 0 0 0 4px #ef476f, 
	              inset 0 0 0 8px #ffd166, 
	              inset 0 0 0 12px #06d6a0,
	              inset 0 0 0 16px #118ab2;
	  background: #073b4c;
	  color: #fff;
	}
</style>

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-01-08 18:48:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-08 18:48:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-08 18:48:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-08 18:48:02       20 阅读

热门阅读

  1. 阿里云腾讯云

    2024-01-08 18:48:02       39 阅读
  2. js判断是否为数字的方法

    2024-01-08 18:48:02       36 阅读
  3. 计算机网络学习笔记(7) - 运输层 - TCP协议

    2024-01-08 18:48:02       39 阅读
  4. C++如何处理内存碎片问题

    2024-01-08 18:48:02       37 阅读
  5. C++ 求一个数是否是丑数。

    2024-01-08 18:48:02       31 阅读
  6. MES生产管理系统流程

    2024-01-08 18:48:02       38 阅读
  7. 面试经典150题(67-71)

    2024-01-08 18:48:02       45 阅读
  8. Leetcode 3002. Maximum Size of a Set After Removals

    2024-01-08 18:48:02       39 阅读