`待办事项css样式

```vue

<template>

<div class="box">

<div class="head">

<h2>待办事项</h2>

<input type="text" placeholder="请输入您的待办事项,按回车添加">

</div>

<div class="main">

<ul>

<li>

<div class="text">

<input type="checkbox">

<span>学习Vue.js前端框架</span>

</div>

<div class="删除"><input type="button" value="删除"></div>

</li>

</ul>

</div>

<div class="foot">

<div class="left">

<input type="button" value="总计:">

</div>

<div class="right">

<input type="button" value="全部">

<input type="button" value="未完成">

<input type="button" value="已完成">

</div>

</div>

</div>

</template>

<script setup>

</script>

<style>

*{

margin: 0px;

padding: 0px;

}

#app{

height: 100vh;

display: flex;

justify-content: center;

align-items: center;

}

.box{

width: 500px;

height: 500px;

border: 1px solid black;

background-color: #ddd;

display: flex;

flex-direction: column;

}

.box > div{

border: 1px solid black;

}

.head{

height: 80px;

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

}

.head > input[type=text]{

width: 97%;

padding-left: 5px;

border: transparent;

margin-top: 5px;

font-size: 12px;

height: 30px;

border-radius: 7px;

}

.main{

flex:1;

}

.foot{

height: 50px;

width: 100%;

display: flex;

flex-direction: row;

justify-content: space-between;

}

li{

list-style: none;

width: 97%;

border-radius: 7px;

display: flex;

flex-direction: row;

/* 分开左右两边 */

justify-content: space-between;

height: 35px;

background-color: white;

margin: 8px;

line-height: 50px;

}

li > div{

display: flex;

align-items: center;

justify-content: center;

margin: 5px;

}

span{

display: inline-flexbox;

padding-left: 5px;

}

input[type=button]{

border: transparent;

margin: 10px;

font-size: 15px;

}

</style>

```

跑项目

  1. **克隆/下载项目**
  • 确保已安装Git。

  • 打开终端:Win+R打开运行窗口,输入`cmd`回车。

  • 执行克隆命令:

```bash

git clone https://gitee.com/myhfw003/grade23-fullstack-class2-todos-demo.git

```

  1. **进入项目目录,安装依赖,运行项目**

```bash

cd todos // 进入项目目录

yarn // 安装依赖

yarn format // 格式化组件代码

yarn dev // 在开发环境中运行项目

```

  1. **打包项目**

```bash

yarn build // 打包项目,打包好的文件在dist目录

yarn review // 预览打包后的项目

```

相关推荐
苦学编程的谢2 分钟前
计算机是如何工作的
服务器·前端·javascript
蓉妹妹16 分钟前
React+Taro选择日期组件封装
前端·react.js·前端框架
风口上的吱吱鼠20 分钟前
记录 ubuntu 安装中文语言出现 software database is broken
linux·服务器·前端
whltaoin27 分钟前
前端弹性布局:用Flexbox构建现代网页的魔法指南
前端·弹性布局
GISer_Jing1 小时前
前端工程化和性能优化问题详解
前端·性能优化
学渣y2 小时前
React文档-State数据扁平化
前端·javascript·react.js
njsgcs2 小时前
画立方体软件开发笔记 js three 投影 参数建模 旋转相机 @tarikjabiri/dxf导出dxf
前端·javascript·笔记
一口一个橘子2 小时前
[ctfshow web入门] web71
前端·web安全·网络安全
逊嘘2 小时前
【Web前端开发】HTML基础
前端·html
未脱发程序员3 小时前
【前端】每日一道面试题3:如何实现一个基于CSS Grid的12列自适应布局?
前端·css