配置如下
const board = reactive({
css: {
width: "750px",
},
views: [
{
type: 'image',
css: {
width: '750px',
'object-fit': "widthFix",
},
src: testBaseData?.indexBGPicUrlList[0]?.picUrl,
},
{
type: 'image',
css: {
width: '750px',
'object-fit': "widthFix",
},
src: testBaseData?.endorsePicUrlList?.[0]?.picUrl,
},
{
type: 'view',
css: {
width: '694px',
position: 'absolute',
bottom: '16px',
left: '12px',
background: '#ccc',
// background: '#ffffff80',
border: '1.28rpx solid #FFFFFF',
'box-shadow': '0 0 10px 0 #cccccc4d',
'border-radius': '16px',
padding: '23px 16px',
display: 'flex',
'align-items': 'center',
},
views: [
{
text: '快来测测您的状态吧',
type: "text",
css: {
'align-self': 'center',
'font-size': '20px',
color: '#000000',
'font-weight': 'bold',
}
},
],
},
],
})
1 个回复
陌上华年
pixel-ratio设置为1