Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
216 views
in Technique[技术] by (71.8m points)

react-native怎么使用css的border-radius四个复合属性?

像这样的一个属性,能不能在rn中拆分成对应值?

width: 50px;
height: 50px;
border-radius: 80% 0 55% 0 / 55% 0 80% 0;

我试了我写成下面这样不对,我感觉实现不了。

borderTopLeftRadius: width*0.8/width*0.55,
borderTopRightRadius: 0,
borderBottomLeftRadius: width*0.55/width*0.8,
borderBottomRightRadius: width*0.5/width*0.5,

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...