In a sequence of numbers,we can find some number pairs that conform to the rule below: Assuming that there exist two numbers,N and M and it's position ...
分类:
其他好文 时间:
2020-05-02 18:46:09
阅读次数:
60
利用定位:让子元素在父元素里面左右上下居中?前提要在父元素上加上position:relative形成参照物 /* 左右上下的居中 */ position:absolute; left:0;right:0; top:0;bottom:0; margin:auto; ...
分类:
其他好文 时间:
2020-05-02 15:01:04
阅读次数:
65
node解压压缩包以及压缩图片 首先保证电脑安装node环境,下载地址:http://nodejs.cn //可以打开一个dos窗口输入node -v进行确认是否安装成功 C:\ > node -v > v10.* 然后就是安装解压压缩包的第三方插件 和 tinypng的插件 npm install ...
分类:
其他好文 时间:
2020-05-01 20:36:37
阅读次数:
97
java NIO包括了以下几个核心部分: Channel Buffer Selector java NIO是非阻塞IO,比如:线程请求把channel中的数据读入到buffer,当channle执行读数据到buffer时,线程可以去做其他事,不用一直等它。一旦数据读入缓冲区,线程就可以继续处理它。同 ...
分类:
编程语言 时间:
2020-05-01 18:52:45
阅读次数:
83
Prolog简介 部分资料来自于: "http://www.ruanyifeng.com/blog/2019/01/prolog.html" "https://blog.csdn.net/laoyao_legend/article/details/84870827" Prolog是一款 面向逻辑问题 ...
分类:
其他好文 时间:
2020-05-01 16:41:15
阅读次数:
115
一.水平居中 (1)直接父集设置text-align:center; .parent{text-align:center;} <div class="parent"> <div class="child">DEMO</div> </div> 优点:兼容性好,甚至可以兼容ie6、ie7缺点:child ...
分类:
其他好文 时间:
2020-05-01 16:39:00
阅读次数:
61
效果图 主题 SimpleMemory 页面定制CSS代码 /*生成博客目录的CSS*/ #uprightsideBar{ font-size:12px; font-family:Arial, Helvetica, sans-serif; text-align:left; position:fixe ...
分类:
其他好文 时间:
2020-05-01 14:34:19
阅读次数:
46
Buffer的capacity,position和limit 缓冲区本质上是一块可以写入数据,然后可以从中读取数据的内存。这块内存被包装成NIO Buffer对象,并提供了一组方法,用来方便的访问该块内存。 为了理解Buffer的工作原理,需要熟悉它的三个属性: capacitypositionli ...
分类:
其他好文 时间:
2020-05-01 10:37:49
阅读次数:
74
Photo by "); background-size: 1px 1px; background-position: 0px calc(1em + 1px);">Pavel Anoshin on "); background-size: 1px 1px; background-position: ... ...
分类:
其他好文 时间:
2020-04-30 11:47:20
阅读次数:
70
如图,黄色按钮沉在div底部: 这种场景会经常遇到,比如头部固定,底部固定,或者侧边栏固定等,虽然很简单,但是好记性不如烂笔头,作为一个后端开发,在转全栈的路上css还是有点蛋疼的。 #dataExplain { position: fixed; background-color: white; } ...
分类:
Web程序 时间:
2020-04-30 11:14:49
阅读次数:
770