问题
How can I allow users to change web page -built with bootstrap- font size when clicking on a button? I would like to change all components font size relatively. Is this possible?
Thanks,
回答1:
This is usually done with Javascript and cookies. Here's an example using jQuery:
- Quick and Easy jQuery Font Resizer Tutorial
回答2:
Bootstrap uses global @baseFontSize
parameter that controls font size of all elements, but changing it would require re-compilation of the css with less.
来源:https://stackoverflow.com/questions/10659018/change-bootstrap-webpage-font-size-when