技术标签: html5模板 顶部菜单栏自动隐藏
CSS
语言:
CSSSCSS
确定
@import url(https://fonts.googleapis.com/css?family=Space+Mono:400,700);
body {
background: #FFBE0B;
font-family: "Space Mono";
font-weight: 400;
font-size: 0.8em;
color: #aaa;
}
input {
font-family: "Space Mono";
font-size: 1em;
outline: none;
}
* {
margin: 0;
padding: 0;
}
.container {
width: 600px;
margin: 100px auto;
box-shadow: 0 0 2px hsla(0, 0%, 0%, 0.2);
border-radius: 6px;
}
@keyframes shake {
from {
left: -2px;
}
to {
left: 2px;
}
}
.task--row {
height: 50px;
padding: 0 20px;
line-height: 50px;
}
.task__head {
background: #FE5F55;
color: white;
font-weight: bold;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.task__footer {
transition: all 0.2s cubic-bezier(.7, .2, .17, 1);
background: #1CCAD8;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.task__footer:hover {
background-color: #54E0EA
}
.task {
overflow: hidden;
transition: all 0.2s 0.2s cubic-bezier(.7, .2, .17, 1);
position: relative;
display: block;
}
.task__check {
position: absolute;
left: -9999px;
z-index: -1;
}
.task__field {
transition: background-size 0.8s 0.2s cubic-bezier(.7, .2, .17, 1), background-color 0.2s cubic-bezier(.7, .2, .17, 1), height 0.2s 1s cubic-bezier(.7, .2, .17, 1);
position: relative;
background-color: #f8f8f8;
border-top: 1px solid #eee;
background-image: linear-gradient(to right, #FE5F55, red);
background-size: 0 2px;
background-repeat: no-repeat;
background-position: left bottom;
}
.task__field:hover {
background-color: white;
}
.task:first-child .task__field {
border-top: none;
}
.task__field.shaking {
animation: shake 0.1s 0.1s infinite ease-in-out;
background-size: 100% 2px;
}
.task__check:checked + .task__field {
color: #47D185;
}
.task__important {
transition: all 0.3s cubic-bezier(.09, .66, .36, 1.8);
opacity: 0;
position: absolute;
right: 0;
top: 0;
transform: scale(0);
color: #47D185;
font-size: 1.4em;
height: 50px;
width: 50px;
border: 0;
background: none;
}
.task__check:checked + .task__field > .task__important {
opacity: 0.5;
transform: scale(1);
}
.task__field.delete {
transition: all 0.2s cubic-bezier(.7, .2, .17, 1);
transform: scale(1.5, 2);
height: 0;
opacity: 0;
}
.task__add {
height: 50px;
border: 0;
background: none;
width: 100%;
color: white;
}
Mock,更确切地说应该是Mock Object。当我们在单元测试、模块的接口测试时,当这个模块需要依赖另外一个/几个类,而这时这些类还没有开发好,这时我们就可以定义Mock对象来模拟那些类的行为。mock工具的其中一个非常重要的作用是指定函数的行为(模拟函数的行为)。可以对入参进行校验,对出参进行设定,还可以指定函数的返回值。Google's framework for w...
安装redis时,需要安装C语言的编译环境执行yum install gcc 命令时,出现Unknown error"ETA正在尝试其它镜像http://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/updates/x86_64/Packages/glibc-devel-2.17-324.el7_9.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.tuna.tsinghu
vue-echarts和echarts的区别:vue-echarts是封装后的vue插件, 基于EChartsv4.0.1+ 开发,依赖Vue.jsv2.2.6+,功能一样的只是把它封装成vue插件 这样更方便以vue的方式去使用它。 echarts就是普通的js库,vue-echarts特征:轻量,高效,按需绑定事件 支持按需导入ECharts.js图表和组件 支持组件调整大小事件自动更新视图git地址:https://github.com/ecomfe/vue-echart...
主流以太网类型及各层的主要功能
一 .什么是mysql连接池场景:每秒同时有1000个并发,但是这个mysql同时只能处理400个连接,mysql会宕机。解决方案:连接池,这个连接池建立了200个和mysql的连接,这1000个并发就有顺序的共享这连接池中的200个连接。这个连接池能够带来额外的性能提升,因为这个和mysql建立连接的这个过程消耗较大,使用连接池只需连接一次mysql。连接池定义:永不断开,要求我们的这个程序是一...
在开窗函数出现之前存在着非常多用 SQL 语句非常难解决的问题,非常多都要通过复杂的相关子查询或者存储过程来完毕。为了解决这些问题,在2003年ISO SQL标准增加了开窗函数,开窗函数的使用使得这些经典的难题能够被轻松的解决。眼下在 MSSQLServer、Oracle、DB2 等主流数据库中都提供了对开窗函数的支持,只是非常遗憾的是 MYSQL 临时还未对开...
一、 登录 ONENET 服务器打开网站 https://open.iot.10086.cn/, 右上角有“登录” 和“注册” , 如果没有帐号请先注册, 根据个人情况选择个人注册或者企业注册, 注册以后登录。登录完成, 进入开发者中心, 随着移动修改界面, 可能界面会不一样。 如下图:点击左上角“全部产品” 图标后, 如下图:选择“多协议接入” , 如下图:添加 MQTT 产品(2) 按要求添加产品“产品名称” 和“产品简介” 按自己的要求写即可, “产品行业” 和“产品类型”
1. 找出名中包含 “厂”的所有供应商的名select * from provider where pro_name like '%厂%'2.第二个字为华select * from provider where pro_name like '_华%'通配符 %:代表任何字符 _:任何单个字符 [a-z]:范围内的单个字符、匹配不区分大小写[^0-9]:不在范围内本意...
C++如何监控键盘输入输出。
安卓支持三类处理器(CPU):ARM、Intel和MIPS。ARM无疑被使用得最为广泛。Intel因为普及于台式机和服务器而被人们所熟知,然而对移动行业影响力相对较小。MIPS在32位和64位嵌入式领域中历史悠久,获得了不少的成功,可目前Android的采用率在三者中最低。总之,ARM现在是赢家而Intel是ARM的最强对手。那么ARM处理器和Intel处理器到底有何区别?为什么ARM如此受欢...
python 爬虫 beautifulsoup 和 requests 的使用安装bs4 和 requestspip install requests bs4导入bs4 和 requestsimport requestsfrom bs4 import BeautifulSoup例子:爬取NBA球员的信息# 新建“exerc3”Python文件完成作业:NBA球员数据网站如下:# “http://data.sports.sohu.com/nba/nba_players..
xsetsudo xset r rate 1000 100250是延迟,60是rate,这个根据自己需要修改具体使用man xset查看。参考:Adjusting keyboard sensitivity in a command line terminal注:其中推荐的kbdrate没有生效。