关于 html 块标签设置 display:inline-block 后出现不明间隔问题
问题描述及造成原因
我们给块元素例如 div 设置 display:inline-block,会发现元素之间存在空隙。原因是所有元素都自带的 white-space 属性在起作用。默认行为就是把换行变成空格。也就是这里的间隙实际上是来自 div 和 div 之间的换行转变成空格导致的。
我们给块元素例如 div 设置 display:inline-block,会发现元素之间存在空隙。原因是所有元素都自带的 white-space 属性在起作用。默认行为就是把换行变成空格。也就是这里的间隙实际上是来自 div 和 div 之间的换行转变成空格导致的。
0x01 MySQL 报 “Error 2006 MySQLserver has gone away” 的解决方法
找到 MySQL 安装目录下的 my.ini(Linux 下为 /etc/my.cnf)配置文件,进行如下配置:
max_allowed_packet=500M
wait_timeout=288000
interactive_timeout = 288000
ERROR: Cannot find the fakeroot binary required for building as non-root user.
ERROR: Cannot find the strip binary required for object file stripping.
首先通过命令 lspci -k | grep Wireless
看一下原因是否为缺少 wifi 驱动,如下,如果没有 Kernel driver in use,说明缺少驱动。
05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter
Kernel driver in use: rtl8821ce
Kernel modules: 8821ce