chanind / hanzi-writer

Chinese character stroke order animations and practice quizzes
https://hanziwriter.org
MIT License
3.44k stars 534 forks source link

Adding width and height to character dynamically #166

Closed krmanik closed 4 years ago

krmanik commented 4 years ago

According to dimensions of screen size how can I add width and height dynamically to HanziWriter character. For id="grid-background-target" Using width=100% height=100% Characters is not get resized. Working but for characters, what should be the option?

SimondNew commented 3 years ago

how did you resolve this problem

krmanik commented 3 years ago

View this https://github.com/infinyte7/Anki-xiehanzi/blob/master/Versions/Version%201.7/back.html#L684-L709

https://github.com/infinyte7/Anki-xiehanzi/blob/master/Versions/Version%201.7/back.html#L771-L772

I have used it my project.