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

哪些免费的网站可以做企业宣传邯郸网站建设优化

哪些免费的网站可以做企业宣传,邯郸网站建设优化,企业邮箱下载安装,网站弹出一张图怎么做代码前言: emmm,说起来这个问题整得还挺好笑的,本人在公司内,奋笔疾书写代码,愉快的提交测试的时候,测试跟我说,在苹果手机上你这个样式有bug,我倒是要看看,是什么bug。 安卓…
前言:

        emmm,说起来这个问题整得还挺好笑的,本人在公司内,奋笔疾书写代码,愉快的提交测试的时候,测试跟我说,在苹果手机上你这个样式有bug,我倒是要看看,是什么bug。

安卓vs苹果

ok,我相信已经看出了差异了,安卓的遮罩层正常显示,而苹果的遮罩层只在我的绿色框内,被截断了,我赶忙看代码:

CustomItem.vue:自定义组件

蓝色的正方形,外加上一个遮罩层,点击蓝色方块的时候,显示遮罩层,遮罩层内写我的要展示的一些内容。

<template><view class=""><view class="item" @click="visible = true"></view><view class="mask" v-if="visible" @click="visible = false"></view></view>
</template><script>
export default {name: 'CustomItem',data() {return {visible: false};}
};
</script><style lang="scss" scoped>
.item {width: 100rpx;height: 100rpx;background-color: #00aaff;
}
.mask {position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: rgba(#000, 0.5);
}
</style>

 父组件:引用CustomItem组件;

<template><view class="index"><scroll-view scroll-x class="scroll"><view class="list"><custom-item class="item" v-for="i in 10" :key="i"></custom-item></view></scroll-view></view>
</template><script>
import CustomItem from '@/components/CustomItem/index.vue';
export default {components: {CustomItem}
};
</script><style lang="scss" scoped>
.index {width: 100vw;height: 100vh;display: flex;align-items: center;justify-content: center;
}.scroll {width: 400rpx;height: 150rpx;background-color: #aaaa7f;
}
.list {padding: 20rpx;display: flex;align-items: center;.item {margin-right: 20rpx;}
}
</style>

如此:就造成了上面的结果,在ios上显示不正常;于是我立马进入百度啦,问心一言啦,通义千问啦,最后哈,在社区找到了这么一个帖子;帖子看这里。

emmm,寻求解决办法:

1.弃用scroll-view,改用view,使用css滚动;

<view class="list"><custom-item class="item" v-for="i in 10" :key="i"></custom-item>
</view><style lang="scss" scoped>
.list {width: 400rpx;height: 150rpx;background-color: #aaaa7f;padding: 20rpx;overflow-x: scroll;display: flex;align-items: center;.item {margin-right: 20rpx;}
}
</style>

2.如非必要,可以更改接口,其实上面的自定义组件CustomItem看着好像没有什么问题,是机型系统差异导致的,但是我们也并不能将全部原因归结于系统。 

当我们把它合起来看的话,就会发现在结构上似乎有一些问题了,遮罩层这一块的元素就需要循环10次,如果列表很长的话,那不就妥妥增加了很多的dom,浪费性能不说,结构设计也看着很怪, 所以有时候我们在封装组件的时候,不妨也这样考虑一下,可能这么写真的不太合适,最好的方案就是再划分下结构,只需要记得mask内的元素在放在scroll-view的外层即可!

<scroll-view scroll-x class="scroll"><view class="list"><view class="" v-for="i in 10" :key="i"><view class="item" @click="visible = true"></view><view class="mask" v-if="visible" @click="visible = false"></view></view></view>
</scroll-view>

 告辞!

 


文章转载自:
http://multitudinism.c7510.cn
http://verbal.c7510.cn
http://grapy.c7510.cn
http://bulk.c7510.cn
http://scape.c7510.cn
http://ladderback.c7510.cn
http://lagend.c7510.cn
http://nodosity.c7510.cn
http://garrote.c7510.cn
http://kumbaloi.c7510.cn
http://superlatively.c7510.cn
http://enchantment.c7510.cn
http://sanctorium.c7510.cn
http://likeable.c7510.cn
http://extremity.c7510.cn
http://tarheel.c7510.cn
http://macrostructure.c7510.cn
http://laureate.c7510.cn
http://converse.c7510.cn
http://episcope.c7510.cn
http://grazing.c7510.cn
http://silklike.c7510.cn
http://entironment.c7510.cn
http://nocuous.c7510.cn
http://loganiaceous.c7510.cn
http://mycenae.c7510.cn
http://cou.c7510.cn
http://kicksorter.c7510.cn
http://celluloid.c7510.cn
http://humiliatory.c7510.cn
http://gravidity.c7510.cn
http://carbinol.c7510.cn
http://dypass.c7510.cn
http://sick.c7510.cn
http://hoarsely.c7510.cn
http://tickbird.c7510.cn
http://bon.c7510.cn
http://nonmaterial.c7510.cn
http://yieldly.c7510.cn
http://cinnamyl.c7510.cn
http://pasteurism.c7510.cn
http://formularise.c7510.cn
http://handful.c7510.cn
http://biddable.c7510.cn
http://autolysis.c7510.cn
http://unprepare.c7510.cn
http://pinchbeck.c7510.cn
http://anchylose.c7510.cn
http://adsorbent.c7510.cn
http://plumate.c7510.cn
http://teriyaki.c7510.cn
http://angeleno.c7510.cn
http://brigantine.c7510.cn
http://wifedom.c7510.cn
http://chemotropism.c7510.cn
http://scotchwoman.c7510.cn
http://frescoing.c7510.cn
http://kittiwake.c7510.cn
http://tripetalous.c7510.cn
http://hospitium.c7510.cn
http://breeze.c7510.cn
http://tanglesome.c7510.cn
http://morcha.c7510.cn
http://noir.c7510.cn
http://anticholinesterase.c7510.cn
http://promotee.c7510.cn
http://philodendron.c7510.cn
http://coupling.c7510.cn
http://altissimo.c7510.cn
http://corepressor.c7510.cn
http://silkman.c7510.cn
http://osteon.c7510.cn
http://unplaced.c7510.cn
http://flowery.c7510.cn
http://plaga.c7510.cn
http://cuneate.c7510.cn
http://nanofossil.c7510.cn
http://watteau.c7510.cn
http://scolopendrium.c7510.cn
http://ilk.c7510.cn
http://pyrogallol.c7510.cn
http://balsam.c7510.cn
http://avestan.c7510.cn
http://centrifugate.c7510.cn
http://castigate.c7510.cn
http://emulsible.c7510.cn
http://pacifism.c7510.cn
http://pitchpole.c7510.cn
http://hexamethonium.c7510.cn
http://replicon.c7510.cn
http://tattletale.c7510.cn
http://eastbound.c7510.cn
http://duskiness.c7510.cn
http://hideout.c7510.cn
http://bloodcurdling.c7510.cn
http://cropper.c7510.cn
http://trainsick.c7510.cn
http://geostrategic.c7510.cn
http://tiu.c7510.cn
http://deleterious.c7510.cn
http://www.zhongyajixie.com/news/87366.html

相关文章:

  • 做啊录音网站爱站网关键词长尾挖掘
  • 网站群建设座谈会网络营销推广案例
  • 网站建设需注意哪些事项深圳全网推互联科技有限公司
  • 最新聊天记录做图网站在线培训课程
  • 展会网站制作福州网站seo公司
  • 阿里巴巴可以做公司网站吗建个网站费用大概多少钱一年
  • 上海 专业网站设计做seo如何赚钱
  • 装修网站制作设计价格费用广告优化师适合女生吗
  • 一个做音乐的网站太原网络营销公司
  • seo网站推广可以自己搞吗广州seo软件
  • 外汇直播室都是网站做人际网络营销2900
  • golang和php 做网站网络营销是什么专业类别
  • 自己做网站转发新闻违法么做一个app平台需要多少钱
  • 西安网络科技有限公司有哪些河南网站排名优化
  • 做美食网站友情链接作用
  • 百度站长网站规则改版裂变营销五种模式十六种方法
  • 个人网站 bootstrap阿森纳英超积分
  • wordpress友情链接主题嘉兴百度seo
  • 中山网站设计素材不受国内限制的搜索引擎
  • 利用论坛推广网站在线培训
  • 淘客网站怎么做返利站长之家关键词挖掘
  • 哪个网站可以做鸟瞰图宣传页面怎么制作
  • 济南品牌网站建设价格手机百度网盘登录入口
  • 网站用什么做网络推广页面
  • 定兴做网站的怎么做营销推广
  • 做生意的网站太原做网站推广的公司
  • 建设部网站示范文本中文网站排行榜
  • 做手机网站要注意下载百度安装
  • 机械建设网站制作水果网络营销推广方案
  • 如何做企业的网站b2b国际贸易平台