代号
代号
  • 发布:2025-06-26 11:15
  • 更新:2025-06-26 11:23
  • 阅读:51

#插件讨论# 【 海报画板 - 陌上华年 】为什么我设置了750px宽度,生成的图片是2250

分类:uni-app
关联插件: 海报画板

配置如下

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',  
                    }  
                },  
            ],  
        },  
    ],  
})
2025-06-26 11:15 负责人:无 分享
已邀请:
陌上华年

陌上华年

pixel-ratio设置为1

要回复问题请先登录注册