1***@qq.com
1***@qq.com
  • 发布:2025-07-23 10:14
  • 更新:2025-07-23 10:14
  • 阅读:292

plus.nativeObj.View里面文字怎么旋转啊

分类:nvue

app用plus.nativeObj.View做水印,文字怎么旋转啊,现在这里不能旋转弄得我只能引用图片了

//水印排列行数
let row = Math.floor(systemInfo.windowHeight / 50);
let tarArr = [];
for(let i = 0; i < row; i++) {
for(let j = 0; j < 3; j++){
tarArr.push({
tag: 'font',
text: watermarkText,
position: {
left: (100 j) + 'px',
top: (50
i) + 'px',
width: 100 + 'px',
height:50 + 'px',
}
});
}
}
var watermarkView = new plus.nativeObj.View(id, {
top: '0px',
left:'0px',
right: '0px',
bottom: '0px',
backgroundColor: 'transparent',
opacity: 0.06,
}, tarArr);
//拦截View控件的触屏事件,将事件穿透给下一层view
watermarkView.interceptTouchEvent(false);
watermarkView.show();

2025-07-23 10:14 负责人:无 分享
已邀请:

要回复问题请先登录注册