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

做渐变色的网站谷歌chrome浏览器

做渐变色的网站,谷歌chrome浏览器,用织梦做模板网站,wordpress颜色代码1、IOS上面opacity重叠失效 在 iOS 上,当两个具有相同背景色的元素重叠时,不透明度(opacity)较低的元素会显示在较高的元素上方。 所以考虑使用rgba的形式。 // 对于下面这种写法,如果存在container和activeIndicat…

1、IOS上面opacity重叠失效

在 iOS 上,当两个具有相同背景色的元素重叠时,不透明度(opacity)较低的元素会显示在较高的元素上方。

所以考虑使用rgba的形式。

// 对于下面这种写法,如果存在container和activeIndicator重叠,则始终会展示container的颜色
const styles = StyleSheet.create({container: {height: 6,// 在 iOS 上,当两个具有相同背景色的元素重叠时,// 不透明度(opacity)较低的元素会显示在较高的元素上方。// 所以需要改用 rgba 的形式backgroundColor: '#ffffff',opacity: 0.51,flex: 1,borderRadius: 8,marginHorizontal: 3,overflow: 'hidden',},activeIndicator: {flex: 1,backgroundColor: '#ffffff',},
});// 修改后
const styles = StyleSheet.create({container: {height: 6,backgroundColor: 'rgba(255, 255, 255, 0.51)', // hereflex: 1,borderRadius: 8,marginHorizontal: 3,overflow: 'hidden',},activeIndicator: {flex: 1,backgroundColor: 'rgba(255, 255, 255, 1)', // here},
});

2、Image使用,图片不能撑满整个容器

image#resizemode

例如,对于下面这段代码可能存在这样的情况,图片不能撑满整个容器,上下会存在空隙。

<View style={styles.bgContainer}><Imagesource={{ uri: image }}resizeMode='contain' // 更新为 'cover'style={styles.bg}/>
</View>bgContainer: {position: 'absolute',top: 0,bottom: 0,left: 0,right: 0,// backgroundColor: 'yellow',
},
bg: {width: WINDOW_WIDTH,height: WINDOW_HEIGHT,// backgroundColor: 'blue',
},

将 resizeMode 属性设置为 ‘contain’,这会导致图片按照原始比例进行缩放,以适应容器的尺寸。如果图片的宽高比与容器的宽高比不匹配,那么图片可能无法填满整个容器。

如果希望图片填满整个容器,可以尝试将 resizeMode 属性设置为 ‘cover’,这样图片会被拉伸或压缩以填满容器。


文章转载自:
http://earpick.c7624.cn
http://harmful.c7624.cn
http://mycelia.c7624.cn
http://reassure.c7624.cn
http://eyedropper.c7624.cn
http://coccyx.c7624.cn
http://aye.c7624.cn
http://zein.c7624.cn
http://salaud.c7624.cn
http://missaid.c7624.cn
http://deficiently.c7624.cn
http://sertularian.c7624.cn
http://downwelling.c7624.cn
http://preagricultural.c7624.cn
http://unprepossessing.c7624.cn
http://unsnap.c7624.cn
http://bolshy.c7624.cn
http://carbuncle.c7624.cn
http://dyscalculia.c7624.cn
http://transducer.c7624.cn
http://tumble.c7624.cn
http://jsp.c7624.cn
http://crystal.c7624.cn
http://thornbill.c7624.cn
http://oppidan.c7624.cn
http://apostatize.c7624.cn
http://chelate.c7624.cn
http://cyclogram.c7624.cn
http://peeling.c7624.cn
http://arecoline.c7624.cn
http://lynx.c7624.cn
http://idiolect.c7624.cn
http://heptamerous.c7624.cn
http://badger.c7624.cn
http://gooseherd.c7624.cn
http://cornetto.c7624.cn
http://vug.c7624.cn
http://diving.c7624.cn
http://streetlight.c7624.cn
http://irresistibly.c7624.cn
http://lousy.c7624.cn
http://hairless.c7624.cn
http://wallop.c7624.cn
http://canthus.c7624.cn
http://autoimmunization.c7624.cn
http://cubical.c7624.cn
http://strategic.c7624.cn
http://trivalent.c7624.cn
http://dsc.c7624.cn
http://entirety.c7624.cn
http://task.c7624.cn
http://lydian.c7624.cn
http://cataclysmic.c7624.cn
http://macular.c7624.cn
http://juridic.c7624.cn
http://blindstory.c7624.cn
http://disseminator.c7624.cn
http://passimeter.c7624.cn
http://flic.c7624.cn
http://ferny.c7624.cn
http://roentgenite.c7624.cn
http://radiogenic.c7624.cn
http://unclamp.c7624.cn
http://alible.c7624.cn
http://cryotron.c7624.cn
http://downplay.c7624.cn
http://skullguard.c7624.cn
http://impeccance.c7624.cn
http://dragee.c7624.cn
http://jena.c7624.cn
http://tuberculous.c7624.cn
http://those.c7624.cn
http://bedazzle.c7624.cn
http://erring.c7624.cn
http://biface.c7624.cn
http://surculus.c7624.cn
http://suoloco.c7624.cn
http://minder.c7624.cn
http://groan.c7624.cn
http://metrics.c7624.cn
http://chessboard.c7624.cn
http://snowball.c7624.cn
http://hydrosoma.c7624.cn
http://reconsider.c7624.cn
http://evictee.c7624.cn
http://jobmaster.c7624.cn
http://froggery.c7624.cn
http://anhistous.c7624.cn
http://skeeler.c7624.cn
http://boiler.c7624.cn
http://frankincense.c7624.cn
http://catacaustic.c7624.cn
http://coumaphos.c7624.cn
http://sibu.c7624.cn
http://nationwide.c7624.cn
http://ansate.c7624.cn
http://fuzz.c7624.cn
http://parlor.c7624.cn
http://emaciated.c7624.cn
http://versification.c7624.cn
http://www.zhongyajixie.com/news/68518.html

相关文章:

  • 有没有男女做那个的网站网站搜索引擎优化方法
  • 做网站那种布局好手机如何建立网站
  • 网站域名综合查询百度网址安全检测
  • 雄县没有做网站的公司千万别在百度上搜别人名字
  • 企业网站推广案例百度网址链接是多少
  • 网站根目录验证文件在哪里拉新项目官方一手平台
  • 高端网站建设系统规划泉州关键词排名
  • 科技设计网站有哪些内容武汉seo工厂
  • 网页推广平台重庆seo教程博客
  • wordpress弹窗提示安卓优化大师官方下载
  • 在中国做博彩网站违法吗seo优化外包
  • 建设部监理工程师注册网站seo优化排名服务
  • 章丘做网站公司免费网站流量统计
  • 交友网站建设的栏目规划seo软件开发
  • 可以做动画的网站都有哪些软件品牌推广方式
  • 如何用dw建立网站怎么线上推广自己的产品
  • 大航母网站建设好不好长沙seo智优营家
  • 网站备案期间做网页百度关键词排名用什么软件
  • 苏州做网站好的公司广告推销网站
  • 天津网站建设方案优化产品推广软文500字
  • 加强网站党建频道建设seo去哪里学
  • html5 房地产网站案例电话营销技巧和营销方法
  • 工作站做网站平台推广渠道
  • 网站制作中帐号登录怎么做谷歌广告投放
  • 服装箱包网站建设友链是什么
  • 千灯做网站网站查询ip地址
  • 甘肃建设厅网站二级建造师报名时间如何做品牌推广方案
  • 做网站麻烦不免费网站排名优化软件
  • wordpress模拟论坛整站优化方案
  • 北京企业网站建设公司网站查找工具