css之字体多行省略(兼容大部分浏览器) 字体单行显示省略号 <style> .box1{ width: 500px; height: 1.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } </style> ...
分类:
Web程序 时间:
2020-06-28 11:20:06
阅读次数:
98
this指针那些事 引言 ? 对于Python来说有self,类比到C++中就是this指针 用处 一个对象的this指针并不是对象本身的一部分,不会影响sizeof(对象)的结果。 this的作用域是在类内部,当在类的非静态成员函数中访问类的非静态成员时,编译器会自动将对象本身的地址作为一个隐含参 ...
分类:
其他好文 时间:
2020-06-28 10:02:05
阅读次数:
51
index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <titl ...
分类:
其他好文 时间:
2020-06-28 09:48:59
阅读次数:
120
给定两线段 \(P_1P_2\) 和 \(P_3P_4\),要求判断他们是否相交。 通过两个步骤完成判断: 快速排斥实验。如果两个线段相交,那么分别以这两个线段为对角线的矩形一定相交(包括只有公共边或只有公共点的相交)。我们首先判断这两个线段是否满足这个条件。 跨立实验。如果这两个线段幸运的通过了上 ...
分类:
其他好文 时间:
2020-06-28 00:36:19
阅读次数:
71
There is a game called "I Wanna Be the Guy", consisting of n levels. Little X and his friend Little Y are addicted to the game. Each of them wants to ...
分类:
其他好文 时间:
2020-06-27 21:41:11
阅读次数:
90
<?php namespace lib; use think\Loader; /** * Description of Qrcode * * @author lsf */class Qiniu { private $bucket; private $uploadMgr; private $qiniu ...
分类:
Web程序 时间:
2020-06-27 16:03:35
阅读次数:
126
通过设置标签属性,去掉无序编号自动换行,代码如下: <!DOCTYPE html> <html> <head> <style> #pic_list { display:block; white-space:nowrap; width:500px; overflow:auto; } #pic_list ...
分类:
其他好文 时间:
2020-06-27 11:40:50
阅读次数:
180
Reverse String (E) 题目 Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space ...
分类:
其他好文 时间:
2020-06-27 10:04:20
阅读次数:
50
docker 的四种网络模式 启动docker进程会在宿主机启动一个docker0桥 brige 桥接模式,容器有虚拟网卡,连接到docker0桥,或者自定义网桥 在iptables 添加DNAT规则 host 容器不会获得独立的网络命名空间,和署主机公用一个网卡,文件、进程命名空间还是独立的 co ...
分类:
其他好文 时间:
2020-06-27 09:17:51
阅读次数:
70
Shell script notes I used this tutorial to learn shell scripting: Shell Scripting Tutorial-Steve Parker. I given my executing result for almost every ...
分类:
系统相关 时间:
2020-06-26 22:22:32
阅读次数:
75