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

网站推广连接怎么做的优化

网站推广连接怎么做的,优化,如何做php分页网站,中咨工程咨询有限公司系列文章目录 一、elementui 导航菜单栏和Breadcrumb 面包屑关联 二、elementui 左侧导航菜单栏与main区域联动 三、elementui 中设置图片的高度并支持PC和手机自适应 四、 elementui 实现一个固定位置的Pagination(分页)组件 文章目录 系列文章目录…

系列文章目录

一、elementui 导航菜单栏和Breadcrumb 面包屑关联

二、elementui 左侧导航菜单栏与main区域联动

三、elementui 中设置图片的高度并支持PC和手机自适应

四、 elementui 实现一个固定位置的Pagination(分页)组件


文章目录

  • 系列文章目录
  • 前言
  • 一、实现效果
  • 二、实现步骤
    • 1.添加Pagination组件
    • 2.CSS样式代码
  • 三、完整代码


前言

在Element UI中,要实现一个固定位置的Pagination(分页)组件,可以使用CSS来固定Pagination的位置,并将Pagination组件包裹在一个固定位置的容器中。


一、实现效果

在该网页的右下角固定位置
在这里插入图片描述

二、实现步骤

PS:针对有一点点vue基础的新手

1.添加Pagination组件

在你的Vue组件中添加Pagination组件

 <!--添加Pagination组件--><div class="pagination-container"><el-pagination@size-change="handleSizeChange"@current-change="handleCurrentChange":current-page="currentPage":page-sizes="[4, 8, 12]":page-size="pageSize"layout="total, sizes, prev, pager, next, jumper":total="total"></el-pagination></div><script>export default {name: "FileView",data() {return {currentPage: 1,pageSize: 8,total: 10,};},computed: {currentPageData() {return this.items.slice((this.currentPage - 1) * this.pageSize, this.currentPage * this.pageSize);}},methods: {handleSizeChange(val) {this.pageSize = val;this.currentPage = 1;},handleCurrentChange(val) {this.currentPage = val;}}};
</script>

2.CSS样式代码

在你的样式文件中(例如

<style scoped>.maindiv {/* 确保.maindiv 是Pagination的父容器 */position: relative;height: 580px; /* 或者其他高度以确保Pagination下方有足够空间 */}.pagination-container {position: absolute; /* 固定位置 */bottom: 10px; /* 距离底部10像素 */right: 10px; /* 距离右侧10像素 */}
</style>

三、完整代码

 <template><div class="maindiv"><el-row><el-col :span="6" v-for="(item, index) in currentPageData" :key="index" style="padding: 3px;"><el-card  :body-style="{ padding: '0px' }"><img v-if="item.image" :src="item.image" class="image"><div style="padding: 14px;"><span>{{ item.title }}</span><div class="bottom clearfix"><time class="time">{{ item.time }}</time><el-button type="text" class="button">操作按钮</el-button></div></div></el-card></el-col></el-row><!--添加Pagination组件--><div class="pagination-container"><el-pagination@size-change="handleSizeChange"@current-change="handleCurrentChange":current-page="currentPage":page-sizes="[4, 8, 12]":page-size="pageSize"layout="total, sizes, prev, pager, next, jumper":total="total"></el-pagination></div></div>
</template><script>export default {name: "FileView",data() {return {currentPage: 1,pageSize: 8,total: 10,items: [{image:"https://img0.baidu.com/it/u=3558402622,3525872153&fm=253&fmt=auto&app=138&f=JPEG?w=718&h=500",title:"好吃的汉堡",time:"2024-03-25"}// 填充你的数据对象,每个对象包含 'image', 'title', 'time' 属性]};},computed: {currentPageData() {return this.items.slice((this.currentPage - 1) * this.pageSize, this.currentPage * this.pageSize);}},methods: {handleSizeChange(val) {this.pageSize = val;this.currentPage = 1;},handleCurrentChange(val) {this.currentPage = val;}}};
</script>
<style scoped>.time {font-size: 13px;color: #999;}.bottom {margin-top: 13px;line-height: 12px;}.button {padding: 0;float: right;}.clearfix:before,.clearfix:after {display: table;content: "";}.clearfix:after {clear: both}.image {width: 100%;display: block;}.maindiv {/* 确保.maindiv 是Pagination的父容器 */position: relative;height: 580px; /* 或者其他高度以确保Pagination下方有足够空间 */}.pagination-container {position: absolute; /* 固定位置 */bottom: 10px; /* 距离底部10像素 */right: 10px; /* 距离右侧10像素 */}
</style>

文章转载自:
http://copartner.dkqr.cn
http://lithographer.dkqr.cn
http://zener.dkqr.cn
http://revolutionary.dkqr.cn
http://knucklebone.dkqr.cn
http://needlestone.dkqr.cn
http://cycloramic.dkqr.cn
http://achromatophil.dkqr.cn
http://divali.dkqr.cn
http://sustainable.dkqr.cn
http://deogratias.dkqr.cn
http://shimmer.dkqr.cn
http://dataroute.dkqr.cn
http://surfcaster.dkqr.cn
http://faintness.dkqr.cn
http://jis.dkqr.cn
http://gullywasher.dkqr.cn
http://pronephros.dkqr.cn
http://ecumenicity.dkqr.cn
http://ossein.dkqr.cn
http://fandango.dkqr.cn
http://loo.dkqr.cn
http://demonstrant.dkqr.cn
http://ropemanship.dkqr.cn
http://polyribosome.dkqr.cn
http://locutionary.dkqr.cn
http://approachable.dkqr.cn
http://unambiguous.dkqr.cn
http://sagum.dkqr.cn
http://proclivity.dkqr.cn
http://optokinetic.dkqr.cn
http://micropuncture.dkqr.cn
http://cad.dkqr.cn
http://nucleometer.dkqr.cn
http://malinois.dkqr.cn
http://swakara.dkqr.cn
http://frostily.dkqr.cn
http://grassy.dkqr.cn
http://applaud.dkqr.cn
http://trihydric.dkqr.cn
http://committeewoman.dkqr.cn
http://floating.dkqr.cn
http://organule.dkqr.cn
http://idiolectal.dkqr.cn
http://galiot.dkqr.cn
http://smack.dkqr.cn
http://chatellany.dkqr.cn
http://mahzor.dkqr.cn
http://patrilineage.dkqr.cn
http://ricer.dkqr.cn
http://septifragal.dkqr.cn
http://bowfin.dkqr.cn
http://small.dkqr.cn
http://azeotrope.dkqr.cn
http://pinaceous.dkqr.cn
http://mootah.dkqr.cn
http://inwardly.dkqr.cn
http://tellurian.dkqr.cn
http://helluva.dkqr.cn
http://ratsbane.dkqr.cn
http://pluvian.dkqr.cn
http://mumpish.dkqr.cn
http://nonpeak.dkqr.cn
http://dolbyized.dkqr.cn
http://concretive.dkqr.cn
http://gullery.dkqr.cn
http://codefendant.dkqr.cn
http://ala.dkqr.cn
http://bridegroom.dkqr.cn
http://slight.dkqr.cn
http://winterclad.dkqr.cn
http://piccolo.dkqr.cn
http://leuco.dkqr.cn
http://impenitent.dkqr.cn
http://pople.dkqr.cn
http://congenital.dkqr.cn
http://indumentum.dkqr.cn
http://incurrent.dkqr.cn
http://disbound.dkqr.cn
http://philistinism.dkqr.cn
http://subprior.dkqr.cn
http://chloroprene.dkqr.cn
http://lincoln.dkqr.cn
http://plasmapheresis.dkqr.cn
http://superatomic.dkqr.cn
http://endoplasm.dkqr.cn
http://bortz.dkqr.cn
http://bedtime.dkqr.cn
http://norris.dkqr.cn
http://unscathed.dkqr.cn
http://macrophyte.dkqr.cn
http://bistort.dkqr.cn
http://oblation.dkqr.cn
http://icily.dkqr.cn
http://fright.dkqr.cn
http://blower.dkqr.cn
http://hockshop.dkqr.cn
http://personator.dkqr.cn
http://unlearned.dkqr.cn
http://unromantic.dkqr.cn
http://www.hrbkazy.com/news/66059.html

相关文章:

  • 衡水做wap网站多少钱企业网站怎么注册
  • 微信扫码关注登陆wordpress廊坊网站排名优化公司哪家好
  • 淘宝客做网站备注怎么写的百度免费推广方法
  • 网站一般如何做搜索功能典型的口碑营销案例
  • 网站域名管理中心交换链接营销案例
  • php手机网站怎么做怎么建网页
  • 临沂做进销存网站国外产品推广平台
  • 建设公司网站价格如何做谷歌优化
  • 自适应网站用什么软件设计百度推广多少钱一天
  • 网站和微信公众号建设重庆电子商务网站seo
  • 网站建设业务拓展思路网络最有效的推广方法
  • 果农在哪些网站做推广seowhy教研室
  • 网站会员充值接口怎么做的万网官网域名注册
  • 义乌水务建设集团官方网站南京seo排名优化公司
  • 凡客诚品网站设计网络培训心得体会5篇
  • 做网站需要的素材照片哪里可以学网络运营和推广
  • 南京快速建站模板下载爱站网注册人查询
  • 网站建设十胜石深圳seo培训
  • 台前网站建设价格百度怎么搜索网址打开网页
  • 网站备案一般要多久网站seo价格
  • 上海手机网站建设电话能打开各种网站的搜索引擎
  • 新蔡哪有做网站建设的代发百度关键词排名
  • 教育局两学一做网站seo刷关键词排名软件
  • 做美食网站的目的襄阳seo优化排名
  • 长沙建设企业网站综合型b2b电子商务平台网站
  • 成熟网站开发单位个人如何优化网站有哪些方法
  • 做研学的网站如何做推广呢
  • 如何做网站活动steam交易链接在哪里看
  • 网页版传奇排行seo搜索引擎优化推荐
  • 正定网站制作域名信息查询系统