The data sent by the vue background is how to set the size of the img in the html,.

how to set the size of the img in html, when the data is sent from vue background

Mar.16,2021

regular + splicing can be


set the style?

dom >>> img { }

the most direct way to solve this problem is to let the back-end students do it neatly, and the front end is a bit embarrassed to deal with this logic.
if you have to deal with the front end, there are two situations: 1. The html fragment is very long and can be changed after the dom rendering is completed. 2. If the html fragment is short, use string.replace to update the html clip to set the style directly

Menu