|
@@ -37,7 +37,7 @@ let setWatermark = (str, date,idName) => {
|
|
div.style.position = 'absolute'
|
|
div.style.position = 'absolute'
|
|
div.style.zIndex = '100000'
|
|
div.style.zIndex = '100000'
|
|
div.style.width = document.documentElement.clientWidth + 'px'
|
|
div.style.width = document.documentElement.clientWidth + 'px'
|
|
- div.style.height = document.documentElement.clientHeight * 100 + 'px'
|
|
|
|
|
|
+ div.style.height = document.documentElement.clientHeight * 100000 + 'px'
|
|
div.style.background = 'url(' + can.toDataURL('image/png') + ') left top repeat'
|
|
div.style.background = 'url(' + can.toDataURL('image/png') + ') left top repeat'
|
|
// document.body.appendChild(div)
|
|
// document.body.appendChild(div)
|
|
div.style.opacity = '1' // 水印的透明度
|
|
div.style.opacity = '1' // 水印的透明度
|