<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>纯Css实现下划线跟随滑动</title>
<style type="text/css">
ul { /*ul定位到页面中间位置*/
margin: 50px auto;
width: 500px;
list-style:none;
}
li { /*设置li位置、字体大小*/
position: relative;
font-size: 25px;
float: left;
padding: 0 20px 0 20px;
}
/*利用:before实现下划线宽度从0-100%*/
li:before {
content: "";
position: absolute;
top: 0;
left: 100%; /*下划线从右侧开始显示*/
width: 0;
height: 100%;
border-bottom: 2px solid red;
transition: 0.2s all linear; /*动画效果*/
}
li:hover:before {
left: 0; /*鼠标滑过时,下划线从右向左移动*/
width: 100%; /*同时,下划线宽度从0-100%*/
}
li:hover ~ li:before { /*~ 选择器:查找指定元素后面的所有兄弟结点*/
left: 0; /*处于hover后面元素的下划线从左侧开始显示*/
}
</style>
</head>
<body>
<ul class="container">
<li>简介</li>
<li>详情</li>
<li>帮助</li>
<li>我的</li>
</ul>
</body>
</html>
Css滚动条样式
::-webkit-scrollbar { /滚动条整体样式/
width: 6px; /宽分别对应竖滚动条的尺寸/
height: 2px; /高分别对应横滚动条的尺寸/
}
::-webkit-scrollbar-track { /滚动条里面轨道/
background-color: rgba(225, 225, 225, 0.58)
}
::-webkit-scrollbar-thumb { /滚动条里面小方块/
background-color: rgba(145, 145, 145, 0.65)
}
Quartz.netcore发布到linux未执行
在本地很够正常执行,发布到服务器上就不行,于是我打印日志发现错误信息是:The SSL connection could not be established, see inner exception.
好像是SLL连接被拒绝了,检查代码发现我是请求了接口的,源码如下
public RESTResponseEntity RequestGet(string url)
{
RESTResponseEntity entity = new RESTResponseEntity();
try
{
HttpClient httpClient = new HttpClient();
if (timeout > 0)
{
httpClient.Timeout = TimeSpan.FromMilliseconds(timeout);
}
//httpClient.DefaultRequestHeaders.Add(HEAD_KEY, TOKEN_KEY_PREFIX + " " + tokenKey);
string strUrl = baseUrl + url;
HttpResponseMessage hrm = httpClient.GetAsync(strUrl).Result;
entity.StatusCode = Convert.ToInt32(hrm.StatusCode);
entity.Data = hrm.Content.ReadAsStringAsync();
}
catch (Exception ex)
{
throw;
}
return entity;
}
后面查阅后,加如下代码可解决这个问题,改造后
public RESTResponseEntity RequestGet(string url)
{
RESTResponseEntity entity = new RESTResponseEntity();
try
{
var httpClientHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (message, certificate2, arg3, arg4) => true
};
HttpClient httpClient = new HttpClient(httpClientHandler);
if (timeout > 0)
{
httpClient.Timeout = TimeSpan.FromMilliseconds(timeout);
}
//httpClient.DefaultRequestHeaders.Add(HEAD_KEY, TOKEN_KEY_PREFIX + " " + tokenKey);
string strUrl = baseUrl + url;
HttpResponseMessage hrm = httpClient.GetAsync(strUrl).Result;
entity.StatusCode = Convert.ToInt32(hrm.StatusCode);
entity.Data = hrm.Content.ReadAsStringAsync();
}
catch (Exception ex)
{
throw;
}
return entity;
}
中标麒麟7(ARM64)安装docker
一、配置yum源
1、进入源路径 : cd /etc/yum.repos.d/
2、删除所有原有源 : sudo rm -f *
3、查看当前路径下是否还有文件 : ls
4、创建一个新的源文件 :sudo vi neokylin.repo,配置参数如下:
[neokylin]
name= NeoKylin 7.0
baseurl=http://download.cs2c.com.cn/neokylin/server/releases/7.0/aarch64/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-release
5. 查看配置信息: cat neokylin.repo
6. 检查配置文件是否正确:yum repolist
7. 更新源缓存 : yum list ; yum clean all ; yum makecache
8. 创建更新源文件:sudo vi sneokylin-updates.repo,配置参数:
[neokylin-updates]
name= NeoKylin 7.0 Updates
baseurl=http://update.cs2c.com.cn:8080/NS/V7/V7Update7/os/adv/lic/base/aarch64/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-release
10. 查看配置信息: cat neokylin.repo
11. 更新源信息:yum -y update --skip-broken
二、安装docker
1、系统默认container-selinux 版本过低,需手动安装
2、通过wget命令下载安装
wget https://repo.huaweicloud.com/centos-altarch/7/extras/aarch64/Packages/container-selinux-2.107-3.el7.noarch.rpm
yum -y install policycoreutils-python
rpm -ivh container-selinux-2.107-3.el7.noarch.rpm
3、# 安装所需的工具包
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
4、# 添加docker源
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce
5、进入/etc/docker 目录,创建文件 vi daemon.json ,配置如下
{
"log-driver": "json-file",
"log-opts": {"max-size":"100m", "max-file":"3"},
"registry-mirrors": ["https://jgfx09aw.mirror.aliyuncs.com"]
}
6、sudo systemctl daemon-reload
7、sudo systemctl restart docker
三、安装docker-compose
1、下载:https://pan.baidu.com/s/1WZqgLne4zeDW5X_jpBFJfQ 提取码:gjg9
2、cp docker-compose-Linux-aarch64 /usr/local/bin/docker-compose
3、chmod +x /usr/local/bin/docker-compose
4、docker-compose –version
linux设置时间同步
1、安装 ntpdate:
centos: yum install -y ntpdate
ubuntu: apt install -y ntpdate
2、创建软连接把上海时间包连过去系统时间包
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3、开始同步
ntpdate 0.asia.pool.ntp.org
4、防止系统重启后时间被还原
hwclock –systohc