gpt4 book ai didi

css - React Native splinter 的边框

转载 作者:行者123 更新时间:2023-11-28 15:07:49 25 4
gpt4 key购买 nike

我正在寻找 React-Native 的一些样式指南。我想创建一个只有一定数量的 Angular 有颜色的边框。是这样的: enter image description here

我目前有这个: enter image description here

  captureSquare: {
height: 450,
width: 450,
borderWidth: 2,
borderColor: '#FFFFFF,
backgroundColor: 'transparent',
justifyContent: 'center',
alignItems: 'center',
},

我不确定如何打破边界。有什么想法吗?

最佳答案

能够通过添加 4 <View /> 来做到这一点s 到 captureSqaure 并赋予它们以下属性:

  topLeftEdge: {
position: 'absolute',
top: 0,
left: 0,
height: 25,
width: 25,
borderColor: '#FFFFFF,
borderLeftWidth: 3,
borderTopWidth: 3,
},

关于css - React Native splinter 的边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49074491/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com