H
H
Hanry6542020-10-21 15:19:07
Vue.js
Hanry654, 2020-10-21 15:19:07

How to set styles inside v-html?

I have a json with text (html), I create a div in the template with a binding to this text via v-html, then I try to style the pictures, but the styles are not set. I tried to set the class directly to the img tag and set it already on it - it does not work.
5f9026d098bcd759086545.png
5f9026dcad20d774484427.png
5f9026e9bbd73081353987.png
5f9027038317d389784618.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-10-21
@Hanry654

create a new style element in the disabled scoped component or disable it in the current one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question