最简单的代办事项列表

这篇博客介绍了如何利用CSS进行样式设计,JavaScript实现交互功能,结合HTML构建一个基本的待办事项列表。通过学习,读者可以掌握前端开发中这三者的基础应用。
摘要由CSDN通过智能技术生成

<!DOCTYPE html>
<html>
<head>
	<title>ToDoList——最简单的待办事项列表</title>
	<link rel="stylesheet" type="text/css" href="./css/reset.css">
	<link rel="stylesheet" type="text/css" href="./css/index.css">
	<script src="./js/index.js"></script>
</head>
<body>
	<div class="header">
		<div class="section">
			<div class="l">
				<label for="title">ToDoList</label>
				<form action="javascript:;">
					<input type="text" name="title" placeholder="添加ToDo">
				</form>
			</div>
		</div>
	</div>
	<div class="section">
		<h2>
			正在进行
			<span id="todoCount">0</span>
		</h2>
		<ul class="todo">
			
		</ul>
		<h2>
			已经完成
			<span id="doneCount">0</span>
		</h2>
		<ul class="done">
		</ul>
	</div>
	<div class="fotem">
		Copyright © 2014 todolist.cn
		<a class="clear" href="javascript:;">clean</a>
	</div>
</body>
</html>

css

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值