html5待办事项模板,待办事项列表模板

这段CSS代码展示了如何利用@import导入Google字体库的Roboto字体,并定义了页面的基本样式,包括h1元素、无序列表、输入框和容器的样式。背景颜色渐变和字体应用为网页增添了一致性和视觉吸引力。此外,还定义了完成任务时的样式和悬停效果。
摘要由CSDN通过智能技术生成

CSS

语言:

CSSSCSS

确定

@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500);

h1 {

background: #2980b9;

color: white;

margin: 0;

padding: 10px 20px;

text-transform: uppercase;

font-size: 24px;

font-weight: normal;

}

ul {

list-style: none;

margin: 0;

padding: 0;

}

body {

font-family: 'Roboto';

background: #2BC0E4;

/* fallback for old browsers */

background: -webkit-linear-gradient(to left, #2BC0E4, #EAECC6);

/* Chrome 10-25, Safari 5.1-6 */

background: linear-gradient(to left, #2BC0E4, #EAECC6);

/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

li {

background: white;

height: 40px;

line-height: 40px;

color: #666;

}

li:nth-child(2n) {

background-color: #f7f7f7;

}

input {

font-size: 18px;

background-color: #f7f7f7;

box-sizing: border-box;

height: 40px;

border-style: none;

padding: 13px 13px 13px 20px;

color: #2980b9;

width: 100%;

}

input:focus {

background: #f7f7f7;

border: 3px solid #2980b9;

outline: none;

}

#container {

background: #f7f7f7;

width: 360px;

margin: 100px auto;

box-shadow: 0 0 3px rgba(0, 0, 0.1);

}

.completed {

color: lightslategray;

text-decoration: line-through;

}

.blue {

color: blue;

}

span {

background-color: #e74c3c;

margin-right: 20px;

height: 40px;

text-align: center;

color: white;

width: 0;

display: inline-block;

transition: 0.2s linear;

opacity: 0;

}

li:hover span {

width: 40px;

opacity: 1;

}

.fa-plus {

float: right;

}

footer {

text-align: center

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值