|
|
@ -65,8 +65,8 @@ |
|
|
|
const newStyle = 'width: 85% !important; height: auto;'; |
|
|
|
const newStyle = 'width: 85% !important; height: auto;'; |
|
|
|
const regex = /(<img[^>]*?\s+style=")([^"]*)("[^>]*?>)/g; |
|
|
|
const regex = /(<img[^>]*?\s+style=")([^"]*)("[^>]*?>)/g; |
|
|
|
const newStr = str.replace(regex, `$1${newStyle}$3`); |
|
|
|
const newStr = str.replace(regex, `$1${newStyle}$3`); |
|
|
|
const brStr = str.replace(/\r\n/g,"<br />") |
|
|
|
// const brStr = str.replace(/\r\n/g,"<br />") |
|
|
|
const videoStr = this.replaceAllVideoTagStyles(brStr, "width: 95%; height: 450rpx;display: block;margin:0 auto") |
|
|
|
const videoStr = this.replaceAllVideoTagStyles(newStr, "width: 95%; height: 450rpx;display: block;margin:0 auto") |
|
|
|
const imgStr = videoStr.replace(regex, `$1${newStyle}$3`); |
|
|
|
const imgStr = videoStr.replace(regex, `$1${newStyle}$3`); |
|
|
|
message.mainBody = imgStr |
|
|
|
message.mainBody = imgStr |
|
|
|
this.form = message |
|
|
|
this.form = message |
|
|
@ -183,6 +183,7 @@ |
|
|
|
line-height: 1.6; |
|
|
|
line-height: 1.6; |
|
|
|
p{ |
|
|
|
p{ |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
img,image{ |
|
|
|
img,image{ |
|
|
|
width: 100% !important; |
|
|
|
width: 100% !important; |
|
|
|