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>
相关推荐
用户059540174461 分钟前
Playwright测试AI记忆存储踩坑实录:这个时序问题让我排查了6小时
前端·css
IT_陈寒3 分钟前
Redis踩了个大坑,原来DEL命令也会卡住整个实例
前端·人工智能·后端
一个水瓶座程序猿.21 分钟前
基于Spring AI RAG 的AI知识库前端交互实现
前端·人工智能·spring
breeze jiang30 分钟前
React + TypeScript 编辑表单:为什么要区分 name 和 editingName
前端·typescript
米码收割机1 小时前
【移动】线上购物移动端网站(源码+文档)【独一无二】
java·开发语言·前端·python·django
To_OC1 小时前
对接大模型流式接口,我被一个 ReadableStream 卡了半小时
前端·node.js·llm
fthux7 小时前
RenoPit 能为普通业主做什么?看懂图纸、审查合同,提前发现装修坑
javascript·人工智能·ai·开源·github·chrome扩展·open source·edge扩展·firefox扩展
仿生狮子8 小时前
✂️ Nuxt 最简单的字体裁剪工具:Fontize
javascript·vue.js·nuxt.js
石小石Orz11 小时前
我发现了开发者AI产品营收的新方向
前端·虚拟现实
老马识途2.011 小时前
关于跨域问题的总结
java·前端