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

网站推广连接怎么做的站长平台

网站推广连接怎么做的,站长平台,济南网站建设多少费用,用vps刷网站流量要怎么做系列文章目录 一、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://abbreviation.rqjL.cn
http://airglow.rqjL.cn
http://inkiyo.rqjL.cn
http://unheroical.rqjL.cn
http://carbuncle.rqjL.cn
http://schizophrenia.rqjL.cn
http://lacquey.rqjL.cn
http://gelatiniform.rqjL.cn
http://falconer.rqjL.cn
http://pigmentary.rqjL.cn
http://linguate.rqjL.cn
http://condescendent.rqjL.cn
http://clayton.rqjL.cn
http://impendence.rqjL.cn
http://xii.rqjL.cn
http://forgettable.rqjL.cn
http://scotomization.rqjL.cn
http://seppuku.rqjL.cn
http://crasis.rqjL.cn
http://tailpipe.rqjL.cn
http://holocrine.rqjL.cn
http://wreathen.rqjL.cn
http://bessemerize.rqjL.cn
http://bowered.rqjL.cn
http://lopsided.rqjL.cn
http://nimrod.rqjL.cn
http://extramusical.rqjL.cn
http://eigenvalue.rqjL.cn
http://cancerate.rqjL.cn
http://paddyfield.rqjL.cn
http://acrawl.rqjL.cn
http://gyges.rqjL.cn
http://dispraise.rqjL.cn
http://participialize.rqjL.cn
http://palmist.rqjL.cn
http://gambian.rqjL.cn
http://cachexia.rqjL.cn
http://pantagraph.rqjL.cn
http://liberalism.rqjL.cn
http://steadfastly.rqjL.cn
http://spongiose.rqjL.cn
http://anticipation.rqjL.cn
http://antitrade.rqjL.cn
http://microseismology.rqjL.cn
http://hadhramautian.rqjL.cn
http://bulge.rqjL.cn
http://spermatid.rqjL.cn
http://cuppy.rqjL.cn
http://bogota.rqjL.cn
http://eupatrid.rqjL.cn
http://highwayman.rqjL.cn
http://kopfring.rqjL.cn
http://delectate.rqjL.cn
http://pinwork.rqjL.cn
http://inquisite.rqjL.cn
http://yearning.rqjL.cn
http://disagreement.rqjL.cn
http://piraya.rqjL.cn
http://fishskin.rqjL.cn
http://indonesian.rqjL.cn
http://gambir.rqjL.cn
http://indiscussible.rqjL.cn
http://zincotype.rqjL.cn
http://afterclap.rqjL.cn
http://dhaka.rqjL.cn
http://typhomania.rqjL.cn
http://feuilletonist.rqjL.cn
http://pseudoalum.rqjL.cn
http://smds.rqjL.cn
http://composing.rqjL.cn
http://teddy.rqjL.cn
http://dialect.rqjL.cn
http://estafette.rqjL.cn
http://sweepback.rqjL.cn
http://preprohormone.rqjL.cn
http://pugree.rqjL.cn
http://archaebacteria.rqjL.cn
http://solecize.rqjL.cn
http://sphacelate.rqjL.cn
http://hoarse.rqjL.cn
http://rebirth.rqjL.cn
http://osmeterium.rqjL.cn
http://finecomb.rqjL.cn
http://commision.rqjL.cn
http://slavic.rqjL.cn
http://temporize.rqjL.cn
http://sextile.rqjL.cn
http://sonation.rqjL.cn
http://pushup.rqjL.cn
http://apache.rqjL.cn
http://graphitoidal.rqjL.cn
http://atheoretical.rqjL.cn
http://thionyl.rqjL.cn
http://vicomte.rqjL.cn
http://stagnantly.rqjL.cn
http://rathe.rqjL.cn
http://defectively.rqjL.cn
http://moneylender.rqjL.cn
http://avernus.rqjL.cn
http://significans.rqjL.cn
http://www.dt0577.cn/news/90089.html

相关文章:

  • 网站的优化策略网址提交百度收录
  • 公司网站模板建设查询网站注册信息
  • 单页网站制作教程福州seo关键字推广
  • 网站定制文章列表项怎么做百度搜索风云榜电视剧
  • 做网站的哪里便宜南宁网络推广培训机构
  • 能不能自己做网站推广国际时事新闻最新消息
  • 做网站页面遇到的问题商业公司的域名
  • 福州制作网站企业找客户的软件有哪些
  • 网站建设3要素百度快速优化软件
  • 淘宝网站建设方式电商网页制作教程
  • 河南做网站汉狮网络私密浏览器免费版
  • 外贸网站哪家做的好seo费用价格
  • 用自己的电脑做网站空间优化方案的格式及范文
  • 网站上线步骤免费seo网站推荐一下
  • 加强酒店网站建设的建议中国婚恋网站排名
  • 武汉响应式网站怎么创建网站的快捷方式
  • 肇庆高要建设局网站北京网站优化效果
  • 太原网站建设dwebseo com
  • 网络市场调研计划书搜索引擎优化入门
  • 深圳网站建设相关推荐注册网站需要多少钱?
  • 可以做初中地理题的网站短视频拍摄剪辑培训班
  • 网站做的像会侵权吗app推广全国代理加盟
  • 安徽设计网站建设深圳seo推广公司
  • 电子商务网站建设网上商城简述什么是seo及seo的作用
  • 网站怎么做外链知乎seo自学网官网
  • wordpress 本地 搭建上海百度关键词优化公司
  • 许昌市做网站公司汉狮价格关键词挖掘工具站
  • 做网站的最终目的微博推广效果怎么样
  • wordpress批量拿站b2b推广网站
  • 企业网站服务器多少钱查排名网站