Zoom in and out of fonts in Mini Program's articles

regular article page < view style= "{{fontsize}} px" > I am the content of the article < / view > you can setData to change the fontsize to change the font size of the article.

I now use wxParse, a plug-in to parse Wechat"s rich text, which makes it very difficult to bind data to change the font size

how to dynamically change the font size based on the wxparse plug-in?

it just occurred to me that it would not work in the outer layer control

< view style= "font-size: {{fontsize}} px" > < template is= "wxParse" data= "{{wxParseData:article.nodes}}" / > < / view >

Mar.14,2021

Why not use the class class name to control the switching font size..

Menu