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

扁平化资讯网站模板wordpress slider插件下载

扁平化资讯网站模板,wordpress slider插件下载,免费流量网站推广,sem是什么分析方法一、效果 二、代码 实现思路使用的是官方提供的 movable-area#xff1a;注意点#xff0c;需要设置其高度#xff0c;否则会出现列表内容重叠的现象。由于movable-view需要向右移动#xff0c;左滑的时候给删除控件展示的空间#xff0c;故 movable-area 需要左移 left:…一、效果 二、代码 实现思路使用的是官方提供的 movable-area注意点需要设置其高度否则会出现列表内容重叠的现象。由于movable-view需要向右移动左滑的时候给删除控件展示的空间故 movable-area 需要左移 left: -120rpx;movable-view右移left: 120rpx;。 通过 width: calc(100% - 120rpx);左划的距离。 .moveArea {   display: flex;   flex-direction: row;   width: calc(100% 120rpx);   justify-content: center;   left: -120rpx;   height: 188rpx; }   movable-view .movableView {   display: flex;   flex-direction: row;   width: calc(100% - 120rpx);   z-index: 1001;   left: 120rpx; } Page({/*** 页面的初始数据*/data: {pushedData:[{messageTitle:饼干,messageContent:饼干爱吃}],//已推送数据},/*** 生命周期函数--监听页面加载*/onLoad() {},/*** 生命周期函数--监听页面初次渲染完成*/onReady() {},/*** 生命周期函数--监听页面显示*/onShow() {},/*** 生命周期函数--监听页面隐藏*/onHide() {},/*** 生命周期函数--监听页面卸载*/onUnload() {},/*** 页面相关事件处理函数--监听用户下拉动作*/onPullDownRefresh() {},/*** 页面上拉触底事件的处理函数*/onReachBottom() {},/*** 用户点击右上角分享*/onShareAppMessage() {},// 退出页面logout:function(){wx.navigateBack({})},}) xml代码 !--pakage_kindness_remind/pages/kindess_msg_remind/kindness_msg_remind_pg.wxml-- !-- head -- view classtitle_searchview classseeck_md!-- 返回 --view classlogout bindtaplogoutimage classlogout_ic src/images/msg/return_back.png/imagetext classlogout_txt返回/text/view!--内容模板--view classmsg_title_centerview classmsg bindtapopen_msgtext classmsg_txt数据中心/text/view/view/viewview classlogoutimage classlogout_ic/imagetext classlogout_txt/text/view /view!-- body -- scroll-view classscbg scroll-ytrueblock wx:for{{pushedData}} wx:keyid wx:for-itemitemName wx:for-indexid!-- 子item父布局 --view classitem_parent!-- 日期 4月5日 周二 8:00 --view classdate wx:if{{id0}}{{itemName.pushTime}} /view!-- --movable-area classmoveAreamovable-view classmovableView directionhorizontal inertia{{true}} out-of-bounds{{true}}view styledisplay: flex;flex-direction: row;width: 100%;height: 100%;view classbox_item!--head布局--view classhead_layout!-- itemhead左边模块 天气提醒--view classhead_title{{itemName.messageTitle}}/view/view!--body布局--view classbody_layout{{itemName.messageContent}}/view/view/view/movable-view view classitemDelet删除/view/movable-area/view/block/scroll-view css代码 /* pakage_kindness_remind/pages/kindess_msg_remind/kindness_msg_remind_pg.wxss */Page {background: #f0f0f0;height: 100%;position: fixed; }/* 头部搜索 */ /* 搜索标题 */ .title_search {background: linear-gradient(to right, #0455a7, #62c8ec);height: 170rpx;width: 100%;display: flex;flex-direction: row;align-items: flex-end;justify-content: flex-start; }.seeck_md {display: flex;flex-direction: row;width: 100%;justify-content: flex-start;align-items: flex-end; }/* 消息 */ .msg {width: 180rpx;height: 90rpx;display: flex;flex-direction: column;justify-content: center;align-items: center;margin-right: 0rpx;margin-left: 30rpx; }.msg_title_center {width: 100%;display: flex;flex-direction: row;justify-content: center; }.msg_txt {font-size: 36rpx;height: 80rpx;width: 160rpx;margin-bottom: 20rpx;align-items: center;color: #fff;display: flex;justify-content: center; }/* 返回 */ .logout {width: 100rpx;height: 90rpx;display: flex;flex-direction: column;justify-content: center;align-items: center;margin-right: 20rpx;margin-left: 30rpx; }.logout_ic {height: 44rpx;width: 48rpx;margin-right: 2rpx; }.logout_txt {font-size: 24rpx;height: 40rpx;width: 60rpx;margin-bottom: 10rpx;align-items: flex-start;color: #fff;display: flex;justify-content: flex-start; }/* 搜索标题 */ /* 头部搜索 *//* body */ .scbg {background-color: #f0f0f0;width: 100%;height: calc(100vh - 180rpx);left: 0rpx;right: 0rpx;top: 0rpx;padding-bottom: 120rpx; }/* item条目布局 */ /* item父布局 */ .item_parent {margin-top: 20rpx; }.date {display: flex;align-items: center;justify-content: center;color: #999999;font-size: 28rpx;margin-bottom: 10rpx; }/* item盒子 */ .box_item {background-color: #fff;margin-left: 25rpx;margin-right: 25rpx;border-radius: 20rpx;flex-direction: column;width: 100%;height: 160rpx;display: flex; }/* item模块时间 *//* item上部分布局 */ .head_layout {height: 60rpx;border-radius: 20rpx;margin-right: 20rpx;display: flex;flex-direction: row;justify-content: space-between;align-items: center; }/* 标题 */ .head_title {width: 160rpx;display: flex;align-items: center;justify-content: flex-start;margin-left: 20rpx;color: #06c8ad;font-size: 28rpx;font-weight: 800; }/* item下部份分布局 */ .body_layout {background-color: #fff;padding-bottom: 20rpx;border-radius: 20rpx;margin-bottom: 16rpx;align-items: center;margin-left: 20rpx;margin-top: 10rpx;margin-right: 10rpx;font-size: 28rpx;color: #999999; }/* 滑动删除移动模块 */ .moveArea {display: flex;flex-direction: row;width: calc(100% 120rpx);justify-content: center;left: -120rpx;height: 188rpx; }/* 滑动删除模块 */ .movableView {display: flex;flex-direction: row;width: calc(100% - 120rpx);z-index: 1001;left: 120rpx; }/* item删除 */ .itemDelet {position: absolute;right: 30rpx;line-height: 160rpx;background-color: #62c8ec;margin-top: 0rpx;margin-right: 6rpx;border-bottom-right-radius: 20rpx;border-top-right-radius: 20rpx;width: 120rpx;text-align: right;padding-right: 20rpx;color: #fff; }
http://www.huolong8.cn/news/314109/

相关文章:

  • 星宿网站建设滁州网站建设电话
  • 新乡做网站优化网站手机版如何制作
  • 建立网站需要温州做外贸网站设计
  • 网站开发速成wordpress打造官网
  • 合肥网站建设 微笑互联网络营销推广方式有几种
  • 中国建设银行启东市支行网站网站需要哪些东西
  • 创建网站要申请域名吗做盗版电影网站教程
  • 怎样做网站视频建设银行信用卡被钓鱼网站
  • 郑州高端模板建站wordpress广告链接不跳转
  • 深圳网站的建设凡科互动怎么发布
  • 做公众号策划的网站门源县wap网站建设公司
  • 建设网站需要准备什么手续统一手机网站
  • 微信制作微网站开发php网站开发更换模板
  • 优站点网址收录网ui设计师需要学的软件
  • 金融服务网站建设高清免费素材网站
  • 找平面图的网站WordPress协会主题模板
  • 无棣网站定制wordpress前端注册
  • h5网站制作平台天津站建站时间
  • 网站开发过程中出现的问题wordpress文章对齐方式
  • 怎样申请自己企业的网站比格设计网站官网
  • 个体户网站备案组织部信息化建设官方网站
  • 做设计网上揽活哪个网站最好软件项目管理考试题及答案
  • 站长统计黄页网站下载大全手把手教你入侵网站修改数据
  • 包装设计十大网站怎么做二次元网站源码
  • 苏州沧浪做网站哪家好html网页可以用以下哪个工具制作
  • 品牌网站方案北京优秀网站建设
  • 昆明做网站开发维护的公司网推渠道平台
  • 黑龙江省城乡和建设厅网站附近电商培训班
  • 网站策划书范文模板网络推广培训机构
  • 在网上建设网站需要花钱么网站开发流程php