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

宁波 做网站下载网站系统源码

宁波 做网站,下载网站系统源码,展示型网站模板代码,优秀文创产品设计案例系列文章目录 一、elementui 导航菜单栏和Breadcrumb 面包屑关联 二、elementui 左侧导航菜单栏与main区域联动 三、elementui 中设置图片的高度并支持PC和手机自适应 四、 elementui 实现一个固定位置的Pagination#xff08;分页#xff09;组件 文章目录 系列文章目录…系列文章目录 一、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 classpagination-containerel-paginationsize-changehandleSizeChangecurrent-changehandleCurrentChange:current-pagecurrentPage:page-sizes[4, 8, 12]:page-sizepageSizelayouttotal, sizes, prev, pager, next, jumper:totaltotal/el-pagination/divscriptexport 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;}}}; /script2.CSS样式代码 在你的样式文件中例如 style scoped.maindiv {/* 确保.maindiv 是Pagination的父容器 */position: relative;height: 580px; /* 或者其他高度以确保Pagination下方有足够空间 */}.pagination-container {position: absolute; /* 固定位置 */bottom: 10px; /* 距离底部10像素 */right: 10px; /* 距离右侧10像素 */} /style三、完整代码 templatediv classmaindivel-rowel-col :span6 v-for(item, index) in currentPageData :keyindex stylepadding: 3px;el-card :body-style{ padding: 0px }img v-ifitem.image :srcitem.image classimagediv stylepadding: 14px;span{{ item.title }}/spandiv classbottom clearfixtime classtime{{ item.time }}/timeel-button typetext classbutton操作按钮/el-button/div/div/el-card/el-col/el-row!--添加Pagination组件--div classpagination-containerel-paginationsize-changehandleSizeChangecurrent-changehandleCurrentChange:current-pagecurrentPage:page-sizes[4, 8, 12]:page-sizepageSizelayouttotal, sizes, prev, pager, next, jumper:totaltotal/el-pagination/div/div /templatescriptexport default {name: FileView,data() {return {currentPage: 1,pageSize: 8,total: 10,items: [{image:https://img0.baidu.com/it/u3558402622,3525872153fm253fmtautoapp138fJPEG?w718h500,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://www.hkea.cn/news/14543184/

相关文章:

  • 南阳移动端网站制作怎样建设影视网站
  • 网站开发邮件电商培训学校
  • 网站建设合同封面模板下载居众装饰集团有限公司
  • wordpress相册轮播新网站百度seo如何做
  • 企业网站推广外包郑州营销型网站推广
  • 宜宾市建设教育培训中心网站好看的博客页面
  • 彩票网站怎么做收银wordpress后台使用方法
  • 莞城建设网站网站建设公司哪家好速找盛世传媒
  • 网站建设中备案遵义住房和城乡建设局官方网站
  • 定制手机网站网站建设哪些职位
  • 电商网站特点怎样做加入购物车的网站
  • 杭州网站制作专业做家教在哪个网站
  • 宝安公司免费网站建设360网站运营
  • 高端网站设计公司排行榜网站图片加载 优化
  • 网站UI怎么做内网怎么做网站服务器
  • 苏州注册公司网上核名江门seo外包服务
  • 韩国电商网站网站备案服务类型
  • 网站系统建设费用安徽合肥紧急通报
  • 观山湖制作网站福州外贸网站建设
  • 网站建设湛江开源的公司网站
  • ps做素材下载网站汕头刚刚发生的事
  • 1号店网站模板下载手机建网站需要多少钱
  • 比较好的网站开发框架今天最新新闻事件报道
  • 自己做的网站打开太慢网站信息系统
  • 网站建设合同英文广东省建设厅官网查询
  • 游戏网站建设计划书wordpress中文英文切换
  • 做的网站提示不安全问题帝国网站 教程
  • 度假村网站建设关键词的分类和优化
  • 网站备案升级一个工厂的网站建设
  • 沈阳做网站的公司推荐自己做电影网站需要的成本