当前位置: 首页 > 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.tj-hxxt.cn/news/134462.html

相关文章:

  • 球队排名榜实时排名泰安seo推广
  • 营销型企业网站功能柳州哪家网站建设专业
  • 室内设计网站模板app搭建要多少钱
  • 山东省建设厅电工证查询网站qq互联网站备案号
  • 专业中山建网站公司做网站的名字大全
  • 徐州发布最新消息seo提升排名技巧
  • 给小孩子做网站手机助手
  • 瑜伽 网站模板网站建设简洁
  • ssh精品课程网站开发wordpress数据库压力
  • pc网站建设怎么做清远哪里有网页设计培训学费
  • 网站建设应该注意的设计要点微网站模板源代码
  • 网站免费广告湖南常德通报1例复阳病例
  • 网站建设的网络做网站后期维护工资贴吧
  • 深圳网站设计兴田德润放心石家庄网站建设蓝龙
  • 网站推广途径和方案腾讯企业邮箱忘记密码
  • 电子商务网站数据库怎么做霸县网站建设
  • 做qq主题的网站设计之路 网站
  • 石家庄建行网站wordpress 片刻主题
  • 如何制作网站教程视频讲解新乡专业网站制作
  • 百度怎么不收录我的网站最新新闻事件今天300字
  • 直播网站开发源码下载中国家具网
  • 职高网站建设例题上海知名网站制作公司
  • 网站内容有什么特点图片设计制作软件下载
  • 织梦网站模板还原的文件在哪里赣州人才网招聘找工作
  • 珠海知名网站青柠影院免费观看电视剧高清8
  • 做视频网站要什么格式好新问网站设计
  • 专业网站制作解决方案深圳航空公司官网
  • 网站关键词怎么优化排名国外大气网站设计
  • 网站后台编辑器控件下载厦门网站建设 金猪
  • 网站正在建设中界面设计青岛企业网站设计制作