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

网站中做背景图片位置咋写南宁企业建站系统模板

网站中做背景图片位置咋写,南宁企业建站系统模板,国精产品999国精产品视频,仿制app软件多少钱文章目录 1. 实现效果2. App.vue3. pages.json 配置自定义4. 顶部导航栏 使用 微信小程序自定义 navigationBar 顶部导航栏#xff0c;兼容适配所有机型 1. 实现效果 2. App.vue 在App.vue 中#xff0c;设置获取的 StatusBar#xff0c;CustomBar 高度#xff08;实现适配… 文章目录 1. 实现效果2. App.vue3. pages.json 配置自定义4. 顶部导航栏 使用 微信小程序自定义 navigationBar 顶部导航栏兼容适配所有机型 1. 实现效果 2. App.vue 在App.vue 中设置获取的 StatusBarCustomBar 高度实现适配高度写法uni.getSystemInfo 获取可视区域的高度wx.getMenuButtonBoundingClientRect() 胶囊按钮位置信息 scriptimport Vue from vueexport default {onLaunch: function() {uni.getSystemInfo({success: function(e) {// #ifndef MPVue.prototype.StatusBar e.statusBarHeight;if (e.platform android) {Vue.prototype.CustomBar e.statusBarHeight 50;} else {Vue.prototype.CustomBar e.statusBarHeight 45;};// #endif// #ifdef MP-WEIXINVue.prototype.StatusBar e.statusBarHeight;let custom wx.getMenuButtonBoundingClientRect();Vue.prototype.Custom custom;Vue.prototype.CustomBar custom.bottom custom.top - e.statusBarHeight 4;// #endif // #ifdef MP-ALIPAYVue.prototype.StatusBar e.statusBarHeight;Vue.prototype.CustomBar e.statusBarHeight e.titleBarHeight;// #endif}});},onShow: function() {console.log(App Show)},onHide: function() {console.log(App Hide)}} /scriptstyle langscss /style 3. pages.json 配置自定义 pages: [{path: home,style: {navigationStyle: custom} }]4. 顶部导航栏 使用 组件完整代码CSS 部分 我使用的是 colorUI 不懂的可以看看写法 templateviewview classcu-custom :style[{height:CustomBar px}]view classcu-bar fixed :stylestyle :class[bgImage!?none-bg text-white bg-img:,bgColor]view classaction tapBackPage v-ifisBacktext classcuIcon-back/textslot namebackText/slot/viewview classcontent :style[{top:StatusBar px}]slot namecontent/slot/viewslot nameright/slot/view/view/view /templatescriptexport default {data() {return {StatusBar: this.StatusBar,CustomBar: this.CustomBar};},name: cu-custom,computed: {style() {var StatusBar this.StatusBar;var CustomBar this.CustomBar;var bgImage this.bgImage;var style height:${CustomBar}px;padding-top:${StatusBar}px;;if (this.bgImage) {style ${style}background-image:url(${bgImage});;}return style}},props: {bgColor: {type: String,default: },isBack: {type: [Boolean, String],default: false},bgImage: {type: String,default: },},methods: {BackPage() {uni.navigateBack({delta: 1});}}} /scriptstyle langscss scoped /stylemain.js 全局注册顶部导航栏组件 // 此处为引用自定义顶部 import cuCustom from ./colorui/components/cu-custom.vue Vue.component(cu-custom,cuCustom);页面使用导航栏组件 cu-custom classnavBox bgColorbg-gradual-blue :isBacktrueblock slotbackText返回/blockblock slotcontent首页/block /cu-custom
http://www.hkea.cn/news/14494751/

相关文章:

  • 知名的家居行业网站开发制作一个网站数据库怎么做
  • 找人做网站需要注意什么如何设计公众号
  • 怎样用dw做 网站首页做网站哪些公司好
  • 一个设计网站多少钱wordpress 模板破解版
  • wordpress的网站是php的代码wordpress文章多个分类显示不出来
  • 做网站作品是静态wordpress 多语言插件
  • 做标志的网站网站已备案下一步怎么做
  • 信阳网站设计古玩网站建设意义
  • mvc 网站开发百度竞价排名机制
  • 玩具 网站模板成都农业网站建设
  • 网站被墙了怎么办通州郑州阳网站建设
  • 枣阳网站开发公司哪家好广州模板建站软件
  • 国外设计素材网站如何建设学校门户网站
  • 手机可以开发网站临安建设投标网站
  • 域名是否就是网站在线阅读小说网站怎么建设
  • 用ps做零食网站模板wordpress添加管理员
  • 医疗器械类网站前置审批快速搭建网站前端
  • 免费软件制作网站模板下载软件迅速上排名网站优化
  • 亦庄做网站ppt下载免费完整版
  • 做网站的哪家公司好工业产品设计与创客实践赛题库
  • 建设网站的编程过程linux 什么做网站好
  • 做电器哪个网站好如何做cad图纸模板下载网站
  • 美容网站制作购物商城网站制作
  • ppt超链接至网站怎么做西安凤城二路网站建设
  • 做网站 赚钱深圳律师网站建设
  • 网站建设背景分析论文个人做网站备案多少钱
  • 上海响应式网站网上买购物的软件有哪些
  • 网站建设及推广优化好的建筑设计网站
  • 找一家秦皇岛市做网站的公司禁止显示网站目录
  • 湖南高端网站建设纯静态网站制作