refactor: 修改pc nas帮助文章详情
This commit is contained in:
@@ -1,402 +1,452 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>帮助中心</title>
|
<title>帮助中心</title>
|
||||||
{include file='include/head-nas' /}
|
{include file='include/head-nas' /}
|
||||||
<style>
|
<style>
|
||||||
[class*=' icon-'] {
|
[class*=' icon-'] {
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
.narshelpdetailPc {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
background: #f9f9f9;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain {
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
border-top: 1px solid #ccc;
|
|
||||||
border-bottom: 1px solid #ccc;
|
|
||||||
padding: 21px 0;
|
|
||||||
top: 0;
|
|
||||||
align-items: center;
|
|
||||||
background: #fff;
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .dropdown {
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
top: 124px;
|
|
||||||
left: 0;
|
|
||||||
width: 435px;
|
|
||||||
border-top: none;
|
|
||||||
background-color: #fff;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
border-bottom-right-radius: 4px;
|
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
||||||
margin: 0 auto;
|
|
||||||
right: 0;
|
|
||||||
max-height: 18.75rem;
|
|
||||||
min-height: 3.125rem;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .dropdown ul {
|
|
||||||
list-style-type: none;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .dropdown ul li {
|
|
||||||
padding: 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .dropdown ul li:hover {
|
|
||||||
background-color: #f4f4f4;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .ml {
|
|
||||||
font-size: 14px;
|
|
||||||
padding-left: 25px;
|
|
||||||
padding-top: 37px;
|
|
||||||
padding-bottom: 31px;
|
|
||||||
color: #8f9099;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .nars-hlp-search {
|
|
||||||
width: 440px;
|
|
||||||
height: 42px;
|
|
||||||
border-radius: 1.3125rem;
|
|
||||||
font-size: 14px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
color: #8f9099;
|
|
||||||
border: 1px solid #cdcedb;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .nars-hlp-search .ssimg {
|
|
||||||
width: 1.6rem;
|
|
||||||
height: 1.6rem;
|
|
||||||
margin-right: 3%;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .nars-hlp-search input {
|
|
||||||
font-size: 14px;
|
|
||||||
border: none;
|
|
||||||
padding: 0 15px;
|
|
||||||
outline: none;
|
|
||||||
flex: 1;
|
|
||||||
margin-right: 2%;
|
|
||||||
margin-left: 2%;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .narsssmain .nars-hlp-search input::placeholder {
|
|
||||||
color: #8f9099;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml {
|
|
||||||
width: 252px;
|
|
||||||
overflow-y: auto;
|
|
||||||
border-right: 1px solid #ccc;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .nav-tree {
|
|
||||||
max-height: 800px;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category-title {
|
|
||||||
display: block;
|
|
||||||
padding: 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-left: 10px;
|
|
||||||
color: #1f2635;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow {
|
|
||||||
margin-right: 2px;
|
|
||||||
transform: rotate(0deg);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow .nars-jt {
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .rotate {
|
|
||||||
transform: rotate(45deg);
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list {
|
|
||||||
display: none;
|
|
||||||
list-style: none;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a {
|
|
||||||
width: fit-content;
|
|
||||||
display: block;
|
|
||||||
margin: 0 10px;
|
|
||||||
padding-top: 22px;
|
|
||||||
text-decoration: none;
|
|
||||||
color: #333;
|
|
||||||
margin-left: 41px;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #8f9099;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li:first a {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a:hover,
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a.active {
|
|
||||||
color: #1f2635;
|
|
||||||
border-bottom: 1px solid #1f2635;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mm {
|
|
||||||
padding: 32px 150px;
|
|
||||||
max-height: 920px;
|
|
||||||
min-height: 700px;
|
|
||||||
height: auto;
|
|
||||||
flex: 1;
|
|
||||||
overflow-y: auto;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mm img{
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
/* .narshelpdetailPc .nars-help-content .nars-hlpdt-mm img{*/
|
|
||||||
/* width: -webkit-fill-available;*/
|
|
||||||
/*}*/
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr {
|
|
||||||
width: 252px;
|
|
||||||
overflow-y: auto;
|
|
||||||
border-left: 1px solid #ccc;
|
|
||||||
overflow-y: auto;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list {
|
|
||||||
padding: 0 20px;
|
|
||||||
float: right;
|
|
||||||
max-height: 800px;
|
|
||||||
min-height: 700px;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list .tt {
|
|
||||||
font-size: 14px;
|
|
||||||
padding-top: 33px;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul {
|
|
||||||
list-style-type: none;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li {
|
|
||||||
margin-bottom: 23px;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a {
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #1f2635;
|
|
||||||
}
|
|
||||||
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a:hover {
|
|
||||||
color: #1f2635;
|
|
||||||
border-bottom: 1px solid #1f2635;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-tree .category:nth-child(1) .category-title {
|
.narshelpdetailPc {
|
||||||
padding-top: 33px;
|
display: flex;
|
||||||
}
|
flex-direction: column;
|
||||||
|
background: #f9f9f9;
|
||||||
|
}
|
||||||
|
|
||||||
/* 修改垂直滚动条 */
|
.narshelpdetailPc .narsssmain {
|
||||||
::-webkit-scrollbar {
|
width: 100%;
|
||||||
width: 6px; /* 修改宽度 */
|
display: flex;
|
||||||
}
|
flex-direction: row;
|
||||||
|
border-top: 1px solid #ccc;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
padding: 21px 0;
|
||||||
|
top: 0;
|
||||||
|
align-items: center;
|
||||||
|
background: #fff;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
/* 修改滚动条轨道背景色 */
|
.narshelpdetailPc .narsssmain .dropdown {
|
||||||
::-webkit-scrollbar-track {
|
display: none;
|
||||||
background-color: transparent;
|
position: absolute;
|
||||||
}
|
top: 124px;
|
||||||
|
left: 0;
|
||||||
|
width: 435px;
|
||||||
|
border-top: none;
|
||||||
|
background-color: #fff;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
|
margin: 0 auto;
|
||||||
|
right: 0;
|
||||||
|
max-height: 18.75rem;
|
||||||
|
min-height: 3.125rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* 修改滚动条滑块颜色 */
|
.narshelpdetailPc .narsssmain .dropdown ul {
|
||||||
::-webkit-scrollbar-thumb {
|
list-style-type: none;
|
||||||
background-color: #ccc;
|
padding: 0;
|
||||||
}
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* 修改滚动条滑块悬停时的颜色 */
|
.narshelpdetailPc .narsssmain .dropdown ul li {
|
||||||
::-webkit-scrollbar-thumb:hover {
|
padding: 10px;
|
||||||
background-color: #D8DFE8;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 修改滚动条滑块移动时的颜色 */
|
.narshelpdetailPc .narsssmain .dropdown ul li:hover {
|
||||||
::-webkit-scrollbar-thumb:active {
|
background-color: #f4f4f4;
|
||||||
background-color: #D8DFE8;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* 修改滚动条滑块的圆角 */
|
.narshelpdetailPc .narsssmain .ml {
|
||||||
::-webkit-scrollbar-thumb {
|
font-size: 14px;
|
||||||
border-radius: 5px;
|
padding-left: 25px;
|
||||||
}
|
padding-top: 37px;
|
||||||
/* 整体滚动条 */
|
padding-bottom: 31px;
|
||||||
* {
|
color: #8f9099;
|
||||||
scrollbar-width: thin; /* 滚动条宽度 */
|
position: absolute;
|
||||||
scrollbar-color: #D8DBE6 transparent; /* 滚动条颜色(滑块颜色 轨道颜色) */
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* 滚动条轨道 */
|
.narshelpdetailPc .narsssmain .nars-hlp-search {
|
||||||
*::-moz-scrollbar-track {
|
width: 440px;
|
||||||
background-color: #f0f0f0;
|
height: 42px;
|
||||||
}
|
border-radius: 1.3125rem;
|
||||||
|
font-size: 14px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
color: #8f9099;
|
||||||
|
border: 1px solid #cdcedb;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* 滚动条滑块 */
|
.narshelpdetailPc .narsssmain .nars-hlp-search .ssimg {
|
||||||
*::-moz-scrollbar-thumb {
|
width: 1.6rem;
|
||||||
background-color: #D8DBE6;
|
height: 1.6rem;
|
||||||
border-radius: 5px; /* 滑块的圆角 */
|
margin-right: 3%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 滚动条的上下箭头 */
|
.narshelpdetailPc .narsssmain .nars-hlp-search input {
|
||||||
*::-moz-scrollbar-button {
|
font-size: 14px;
|
||||||
display: none; /* 隐藏上下箭头 */
|
border: none;
|
||||||
}
|
padding: 0 15px;
|
||||||
|
outline: none;
|
||||||
|
flex: 1;
|
||||||
|
margin-right: 2%;
|
||||||
|
margin-left: 2%;
|
||||||
|
}
|
||||||
|
|
||||||
/* 滚动条的上下箭头:向上箭头 */
|
.narshelpdetailPc .narsssmain .nars-hlp-search input::placeholder {
|
||||||
*::-moz-scrollbar-button:vertical:decrement {
|
color: #8f9099;
|
||||||
display: none;
|
text-align: center;
|
||||||
}
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
/* 滚动条的上下箭头:向下箭头 */
|
.narshelpdetailPc .nars-help-content {
|
||||||
*::-moz-scrollbar-button:vertical:increment {
|
display: flex;
|
||||||
display: none;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
margin: 0;
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml {
|
||||||
all: revert; /* 将所有属性设置为初始值 */
|
width: 252px;
|
||||||
/* 或者使用 all: revert; 恢复到浏览器默认样式,但该属性兼容性不如 initial */
|
overflow-y: auto;
|
||||||
}
|
border-right: 1px solid #ccc;
|
||||||
</style>
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .nav-tree {
|
||||||
|
max-height: 800px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category-title {
|
||||||
|
display: block;
|
||||||
|
padding: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-left: 10px;
|
||||||
|
color: #1f2635;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow {
|
||||||
|
margin-right: 2px;
|
||||||
|
transform: rotate(0deg);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow .nars-jt {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .rotate {
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list {
|
||||||
|
display: none;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a {
|
||||||
|
width: fit-content;
|
||||||
|
display: block;
|
||||||
|
margin: 0 10px;
|
||||||
|
padding-top: 22px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: #333;
|
||||||
|
margin-left: 41px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #8f9099;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li:first a {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a:hover,
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a.active {
|
||||||
|
color: #1f2635;
|
||||||
|
border-bottom: 1px solid #1f2635;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mm {
|
||||||
|
padding: 32px 150px;
|
||||||
|
max-height: 920px;
|
||||||
|
min-height: 700px;
|
||||||
|
height: auto;
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mm img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .narshelpdetailPc .nars-help-content .nars-hlpdt-mm img{*/
|
||||||
|
/* width: -webkit-fill-available;*/
|
||||||
|
/*}*/
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr {
|
||||||
|
width: 252px;
|
||||||
|
overflow-y: auto;
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
overflow-y: auto;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list {
|
||||||
|
padding: 0 20px;
|
||||||
|
float: right;
|
||||||
|
max-height: 800px;
|
||||||
|
min-height: 700px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list .tt {
|
||||||
|
font-size: 14px;
|
||||||
|
padding-top: 33px;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li {
|
||||||
|
margin-bottom: 23px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a {
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #1f2635;
|
||||||
|
}
|
||||||
|
|
||||||
|
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a:hover {
|
||||||
|
color: #1f2635;
|
||||||
|
border-bottom: 1px solid #1f2635;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-tree .category:nth-child(1) .category-title {
|
||||||
|
padding-top: 33px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 修改垂直滚动条 */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
/* 修改宽度 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 修改滚动条轨道背景色 */
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 修改滚动条滑块颜色 */
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 修改滚动条滑块悬停时的颜色 */
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background-color: #D8DFE8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 修改滚动条滑块移动时的颜色 */
|
||||||
|
::-webkit-scrollbar-thumb:active {
|
||||||
|
background-color: #D8DFE8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 修改滚动条滑块的圆角 */
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 整体滚动条 */
|
||||||
|
* {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
/* 滚动条宽度 */
|
||||||
|
scrollbar-color: #D8DBE6 transparent;
|
||||||
|
/* 滚动条颜色(滑块颜色 轨道颜色) */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 滚动条轨道 */
|
||||||
|
*::-moz-scrollbar-track {
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 滚动条滑块 */
|
||||||
|
*::-moz-scrollbar-thumb {
|
||||||
|
background-color: #D8DBE6;
|
||||||
|
border-radius: 5px;
|
||||||
|
/* 滑块的圆角 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 滚动条的上下箭头 */
|
||||||
|
*::-moz-scrollbar-button {
|
||||||
|
display: none;
|
||||||
|
/* 隐藏上下箭头 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 滚动条的上下箭头:向上箭头 */
|
||||||
|
*::-moz-scrollbar-button:vertical:decrement {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 滚动条的上下箭头:向下箭头 */
|
||||||
|
*::-moz-scrollbar-button:vertical:increment {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
margin: 0;
|
||||||
|
all: revert;
|
||||||
|
/* 将所有属性设置为初始值 */
|
||||||
|
/* 或者使用 all: revert; 恢复到浏览器默认样式,但该属性兼容性不如 initial */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<!-- 顶部导航 -->
|
<!-- 顶部导航 -->
|
||||||
{include file='include/top-header-nas'/}
|
{include file='include/top-header-nas'/}
|
||||||
<div class="narshelpdetailPc">
|
<div class="narshelpdetailPc">
|
||||||
<!-- top 搜索-->
|
<!-- top 搜索-->
|
||||||
<div class="narsssmain">
|
<div class="narsssmain">
|
||||||
<div class="ml">帮助中心 / 使用教程</div>
|
<div class="ml">帮助中心 / 使用教程</div>
|
||||||
<div class="nars-hlp-search">
|
<div class="nars-hlp-search">
|
||||||
<input placeholder="请输入搜索关键字,如安装赛博云空间、影视库" />
|
<input placeholder="请输入搜索关键字,如安装赛博云空间、影视库" />
|
||||||
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-ssico.png" class="ssimg">
|
<img src="__PUBLIC__/m_web/images/nas/help/nhlp-ssico.png" class="ssimg">
|
||||||
</div>
|
</div>
|
||||||
<!-- 下拉搜索框 -->
|
<!-- 下拉搜索框 -->
|
||||||
<div class="dropdown" id="dropdown"></div>
|
<div class="dropdown" id="dropdown"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 目录-文章详情-锚点定位--->
|
<!-- 目录-文章详情-锚点定位--->
|
||||||
<div class="nars-help-content">
|
<div class="nars-help-content">
|
||||||
<!--目录 -->
|
<!--目录 -->
|
||||||
<div class="nars-hlpdt-ml">
|
<div class="nars-hlpdt-ml">
|
||||||
<div class="nav-tree">
|
<div class="nav-tree">
|
||||||
{volist name="categorys" id="vo"}
|
{volist name="categorys" id="vo"}
|
||||||
<div class="category">
|
<div class="category">
|
||||||
<div class="category-title">
|
<div class="category-title">
|
||||||
<div class="arrow {if condition='$cid == $vo.id'}rotate{/if}"><img src="__PUBLIC__/m_web/images/nas/help/nars-jt.png" class="arrow {if condition='$cid == $vo.id'}rotate{/if}"/></div>
|
<div class="arrow {if condition='$cid == $vo.id'}rotate{/if}"><img src="__PUBLIC__/m_web/images/nas/help/nars-jt.png" class="arrow {if condition='$cid == $vo.id'}rotate{/if}" /></div>
|
||||||
<span>{$vo.name}</span>
|
<span>{$vo.name}</span>
|
||||||
</div>
|
</div>
|
||||||
<ul class="sub-list" {if condition="$cid == $vo.id"}style="display: block;"{/if}>
|
<ul class="sub-list" {if condition="$cid == $vo.id" }style="display: block;" {/if}>
|
||||||
{volist name="vo.articles" id="va"}
|
{volist name="vo.articles" id="va"}
|
||||||
<li>
|
<li>
|
||||||
<a href="{:url('tops_nas/helper_detail', ['id' => $va.id])}" class="{if condition='$Request.param.id == $va.id'}active{/if}" style="{if condition='$key==0'}padding-top: 6px;{/if}">{$va.name}</a>
|
<a href="{:url('tops_nas/helper_detail', ['id' => $va.id])}" class="{if condition='$Request.param.id == $va.id'}active{/if}" {if condition='$key==0' }style="padding-top: 6px;"{/if}>{$va.name}</a>
|
||||||
</li>
|
</li>
|
||||||
{/volist}
|
{/volist}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{/volist}
|
{/volist}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--文章详情 -->
|
<!--文章详情 -->
|
||||||
<div class="nars-hlpdt-mm" id="rendered-content">
|
<div class="nars-hlpdt-mm" id="rendered-content">
|
||||||
<div>{$article.content|default=''}</div>
|
<div>{$article.content|default=''}</div>
|
||||||
</div>
|
</div>
|
||||||
<!--锚点定位 -->
|
<!--锚点定位 -->
|
||||||
<div class="nars-hlpdt-mr">
|
<div class="nars-hlpdt-mr">
|
||||||
<div id="title-list">
|
<div id="title-list">
|
||||||
<h2 class="tt">目录</h2>
|
<h2 class="tt">目录</h2>
|
||||||
<ul></ul>
|
<ul></ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{include file='include/bottom2023'/}
|
{include file='include/bottom2023'/}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('.category-title').click(function() {
|
$('.category-title').click(function() {
|
||||||
$(this).next('.sub-list').slideToggle();
|
$(this).next('.sub-list').slideToggle();
|
||||||
$(this).find('.arrow').toggleClass('rotate');
|
$(this).find('.arrow').toggleClass('rotate');
|
||||||
});
|
});
|
||||||
|
|
||||||
// 搜索
|
// 搜索
|
||||||
$(document).on('click', function(e) {
|
$(document).on('click', function(e) {
|
||||||
var target = $(e.target);
|
var target = $(e.target);
|
||||||
if (!target.closest('.nhlp-search').length) {
|
if (!target.closest('.nhlp-search').length) {
|
||||||
$('#dropdown').hide();
|
$('#dropdown').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var timeout = null;
|
var timeout = null;
|
||||||
$('.nars-hlp-search input').on('focus input', function() {
|
$('.nars-hlp-search input').on('focus input', function() {
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
var _this = this;
|
var _this = this;
|
||||||
timeout = setTimeout(function () {
|
timeout = setTimeout(function() {
|
||||||
var keywords = $(_this).val();
|
var keywords = $(_this).val();
|
||||||
if (keywords == '') {
|
if (keywords == '') {
|
||||||
$('#dropdown').hide().html('');
|
$('#dropdown').hide().html('');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{:url('tops_nas/helper_search')}",
|
url: "{:url('tops_nas/helper_search')}",
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {keywords: keywords},
|
data: {
|
||||||
dataType: 'JSON',
|
keywords: keywords
|
||||||
success: function(r) {
|
},
|
||||||
var html = '';
|
dataType: 'JSON',
|
||||||
if (r.code == 0) {
|
success: function(r) {
|
||||||
html = '<ul>'
|
var html = '';
|
||||||
$.each(r.data, function(k, v) {
|
if (r.code == 0) {
|
||||||
html += '<li><a href="{:url(\'tops_nas/helper_detail\')}?id=' + v.id + '">' + v.name + '</a></li>'
|
html = '<ul>'
|
||||||
})
|
$.each(r.data, function(k, v) {
|
||||||
html += '</ul>'
|
html += '<li><a href="{:url(\'tops_nas/helper_detail\')}?id=' + v.id + '">' + v.name + '</a></li>'
|
||||||
}
|
})
|
||||||
$('#dropdown').show().html(html);
|
html += '</ul>'
|
||||||
}
|
}
|
||||||
})
|
$('#dropdown').show().html(html);
|
||||||
}, 300);
|
}
|
||||||
})
|
})
|
||||||
// 内容
|
}, 300);
|
||||||
// 清空标题列表
|
})
|
||||||
$("#title-list ul").empty();
|
// 内容
|
||||||
// 提取 h1 标题
|
// 清空标题列表
|
||||||
var h1Titles = $("#rendered-content").find("h3");
|
$("#title-list ul").empty();
|
||||||
h1Titles.each(function(index) {
|
// 提取 h1 标题
|
||||||
var title = $(this);
|
var h1Titles = $("#rendered-content").find("h3");
|
||||||
var titleText = title.text();
|
h1Titles.each(function(index) {
|
||||||
var titleId = "title-" + index;
|
var title = $(this);
|
||||||
title.attr("id", titleId);
|
var titleText = title.text();
|
||||||
var listItem = $("<li>");
|
var titleId = "title-" + index;
|
||||||
var link = $("<a>", {
|
title.attr("id", titleId);
|
||||||
href: "#" + titleId,
|
var listItem = $("<li>");
|
||||||
text: titleText
|
var link = $("<a>", {
|
||||||
});
|
href: "#" + titleId,
|
||||||
listItem.append(link);
|
text: titleText
|
||||||
$("#title-list ul").append(listItem);
|
});
|
||||||
});
|
listItem.append(link);
|
||||||
});
|
$("#title-list ul").append(listItem);
|
||||||
</script>
|
});
|
||||||
</body>
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user