1.让a标签点击不跳到头部
将a标签的href写为:href="javascript:viod(0)"
2.让导航文字不能被选中
设置css样式:user-select:none
demo:
.text-no-select {
-webkit-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
user-select: none !important;
}