当前位置: 首页 > news >正文

做网站西安百度提交网址

做网站西安,百度提交网址,泷澄建设集团网站,wordpress 多媒体 权限一、路由添加 1、官网地址 带参数的动态路由匹配 | Vue Routerhttps://router.vuejs.org/zh/guide/essentials/dynamic-matching.html 2、复制核心语句 { path: /:pathMatch(.*)*, name: NotFound, component: NotFound } 3、粘贴到路由index.js中 4、建立页面 在view文件夹…

一、路由添加

1、官网地址

带参数的动态路由匹配 | Vue Routerhttps://router.vuejs.org/zh/guide/essentials/dynamic-matching.html

2、复制核心语句

{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound }

3、粘贴到路由index.js中

4、建立页面

在view文件夹中建立NotFoundView.vue文件夹

5、修改路由中404页面的路径

将404页面路路径指定刚才新建立的页面

二、编写404页面代码

1、页面效果

2、代码展示

①404页面编辑

NotFoundView.vue

<template><div class="page flex flex-center"><div class="content flex  flex-between"><div class="img flex flex-center"><img src="/public/img/404.png" alt="=" srcset=""></div><div class="title flex flex-center flex-column"><p>The page does not exist</p><div><router-link to="/"><el-button>返回主页</el-button></router-link></div></div></div></div>
</template><style>
.page {height: 100vh;background-color: #eaf0fe;
}.content {height: 400px;width: 800px;border-radius: 10px;
}.content .img {height: 100%;width: 45%;background-color: #abc4fc;border-top-left-radius: 10px;border-bottom-left-radius: 10px;
}.img img {width: 80%;height: 80%;
}.title {background-color: #fff;width: 55%;height: 100%;border-top-right-radius: 10px;border-bottom-right-radius: 10px;
}p {margin-bottom: 20px;font-size:20px;
}:root {--el-fill-color-blank: #f97ca7;--el-text-color-regular: #fff;--el-color-primary: #f97ca7;--el-color-primary-light-9: #fff;--el-color-primary-light-7: #f97ca7;--el-border-radius-base:20px;--el-font-size-base:12px;
}
</style>

注 :

el按钮的样式编写

如上图的代码内容是改写的el-button自带的按钮效果

如上图:在浏览器页面中要查看按钮的相关样式,可打卡F12进行代码查看

例如:

--el-button-bg-color: var(--el-fill-color-blank);

这个表示,按钮的--el-button-bg-color属性的值是变量--el-fill-color-blank的值,可在base.css中定义或重写

在:root中进行编写变量信息即可

这里我不需要设置全部变量,我只是修改我页面的数据,那么我直接写在我的页面中即可

全局css其实是main.css,只是在内部引入了base.css才可使用

返回首页的按钮跳转功能

<router-link to="/">
         <el-button>返回主页</el-button>
</router-link>

这里使用router-ink 进行跳转,to的值表示跳转到的页面位置

这里采用的 /,是主页面的路径表示

②main.css

在main.css中写入多页面都可能引入的常见样式,如下图

6、测试404页面是否建立成功

现在即可打开任意不存在的页面

http://www.hkea.cn/news/83670/

相关文章:

  • 运城市做网站英文seo外链
  • 江宁网站建设如何建立网上销售平台
  • 淄博企业网站建设有限公司搜索引擎关键词竞价排名
  • 网站的优点企业专业搜索引擎优化
  • 哪里有软件开发培训机构无锡seo培训
  • 网站怎么做反链seo是什么品牌
  • 技术型网站做哪一种好软文范例大全100
  • 百度搜索什么关键词能搜到网站seo高效优化
  • 网站搭建分站需要多少钱互联网营销策划
  • 音乐网站的音乐怎么做seo先上排名后收费
  • 清河做网站报价seo实战培训王乃用
  • wordpress 回收站在哪个文件夹营销方式和手段
  • 垂直型电商网站如何做快速排名软件哪个好
  • 做产品推广有网站比较好的免费自助建站平台
  • 番禺网站建设公司排名百度推广页面投放
  • 沈阳做微网站百度收录刷排名
  • 网站建设与管理技术发展seo是什么意思如何实现
  • 手机游戏开发制作公司最新seo视频教程
  • 网站优化过度被k长春seo排名公司
  • wordpress移除谷歌字体seo网站推广与优化方案
  • 十大景观设计公司排名seo权重查询
  • 水友做的yyf网站十大免费引流平台
  • 东莞公司网站制作百度识图网页版 在线
  • 企业级网站内容管理解决方案网站关键词快速排名服务
  • 影视采集网站怎么做收录关键词是网站seo的核心工作
  • 开发一个网站需要多少时间百度账号免费注册
  • 化妆品网站主页设计长沙关键词优化方法
  • 南阳建网站企业百度推广优化工具
  • 怎样把自己做的网页放在网站里如何做宣传推广营销
  • 七谷网络工作室重庆优化seo