CSS 发光输入框动画

 


<template>
	<view class="content">
	<input placeholder="请输入..." class="input" />	
	</view>
</template>

<script>

</script>

<style>
	/* 设置整个页面的背景颜色为 #212121 */
	body{
	    background-color: #212121;
	}
	/* 设置内容容器的样式 */
	.content {
	    display: flex;  /* 使用 Flex 布局 */
	    flex-direction: column;  /* 设置主轴为纵向排列 */
	    align-items: center;  /* 在交叉轴上居中对齐 */
	    justify-content: center;  /* 在主轴上居中对齐 */
	    margin-top: 300px;  /* 设置上边距为 300px */
	}
	/* 设置输入框的样式 */
	.input {
	    background-color: #212121;  /* 背景颜色为 #212121 */
	    width: 230px;  /* 宽度为 230px */
	    height: 40px;  /* 高度为 40px */
	    padding: 10px;  /* 内边距为 10px */
	    border: 2px solid white;  /* 设置边框,宽度为 2px,颜色为白色 */
	    border-radius: 5px;  /* 设置圆角半径为 5px */
	}

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-09 14:12:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-09 14:12:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-09 14:12:02       82 阅读
  4. Python语言-面向对象

    2024-01-09 14:12:02       91 阅读

热门阅读

  1. 【ChCore Lab 00】ChCore Lab 环境简单搭建

    2024-01-09 14:12:02       56 阅读
  2. 如何在 Ubuntu 20.04 上重置 MySQL 或 MariaDB 根密码

    2024-01-09 14:12:02       59 阅读
  3. python中字符串替换方式

    2024-01-09 14:12:02       56 阅读
  4. SpringBoot 静态资源映射

    2024-01-09 14:12:02       65 阅读
  5. How to keep a conversation going in English?

    2024-01-09 14:12:02       47 阅读
  6. 复试 || 就业day12(2024.01.08)算法篇

    2024-01-09 14:12:02       67 阅读
  7. spring aop

    2024-01-09 14:12:02       62 阅读
  8. Docker 中使用超级用户

    2024-01-09 14:12:02       60 阅读
  9. docker+cassandra

    2024-01-09 14:12:02       62 阅读