课题资源-todu
2021/12/1 6:08:28
本文主要是介绍课题资源-todu,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
<template> <div class="todo-header"> <input type="text" placeholder="请输入任务名称,按回车键确认"> </div> </template> <script> export default { name: "Topo" } </script> <style scoped> .todo-header input{ width: 560px; height: 28px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; padding: 4px 7px; } .todo-header input:focus{ outline: none; border-color: rgba(82,168,236,0.8); box-shadow: inset 0 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6); } </style> --------------------------------------------------------------------------------------------------<template> <ul class="todo-main"> <Item></Item> </ul> </template> <script> import Item from './Item'; export default { name: "List", components:{Item} } </script> <style scoped> .todo-main{ margin-left: 0px; border:1px solid #ddd; border-radius: 2px; padding: 0px; } .tod0-empty { height: 40px; line-height: 40px; border: 1px solid #ddd; border-radius: 2px; padding-left: 5px; margin-top: 10px; } </style> ----------------------------------------------------------------------------------------------------------------------------- <template> <div class="todo-footer"> <label> <input type="checkbox"> </label> <span> <span>已完成0</span> 总任务数3 </span> <button class="btn btn-danger">清楚已完成任务</button> </div> </template> <script> export default { name: "Foot" } </script> <style scoped> .todo-footer{ height: 40px; line-height: 40px; padding-left: 6px; margin-top: 5px; } .todo-footer label{ display: inline-block; margin-right: 20px; cursor: pointer; } .todo-footer label input{ position: relative; top: -1px; vertical-align: middle; margin-right: 5px; } .todo-footer button{ float: right; margin-top: 5px; } </style> ----------------------------------------------------------- <template> <li> <label> <input type="checkbox"> <span>学习</span> </label> <button class ="btn btn-danger" style="display: none">删除</button> </li> </template> <script> export default { name: "Item" } </script> <style scoped> li{ list-style: none; height: 36px; line-height: 36px; padding: 0 5px; border-bottom: 1px solid #ddd; } li label{ float: left; cursor: pointer; } li label li input { vertical-align: middle; margin-right: 6px; position: relative; top: -1px; } li button{ float: right; display: none; margin-top: 3px; } li:before{ content: initial; } li:last-child{ border-bottom: none; } </style>
这篇关于课题资源-todu的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-23Springboot应用的多环境打包入门
- 2024-11-23Springboot应用的生产发布入门教程
- 2024-11-23Python编程入门指南
- 2024-11-23Java创业入门:从零开始的编程之旅
- 2024-11-23Java创业入门:新手必读的Java编程与创业指南
- 2024-11-23Java对接阿里云智能语音服务入门详解
- 2024-11-23Java对接阿里云智能语音服务入门教程
- 2024-11-23JAVA对接阿里云智能语音服务入门教程
- 2024-11-23Java副业入门:初学者的简单教程
- 2024-11-23JAVA副业入门:初学者的实战指南