我有这个样式表,当我把高度设置为百分比时,我试图使它的宽度等于高度.我犯了以下错误,但没有成功:
art: {
height: "70%",
width: styles.podcastArt.height,
marginRight:10,
marginTop:10,
marginBottom:10,
},
任何 idea 或方向都会有帮助.谢谢
我有这个样式表,当我把高度设置为百分比时,我试图使它的宽度等于高度.我犯了以下错误,但没有成功:
art: {
height: "70%",
width: styles.podcastArt.height,
marginRight:10,
marginTop:10,
marginBottom:10,
},
任何 idea 或方向都会有帮助.谢谢
设定aspectRatio: 1
art: {
height: "70%",
aspectRatio: 1,
marginRight:10,
marginTop:10,
marginBottom:10,
},