Change bootstrap webpage font size when

大憨熊 提交于 2020-01-05 03:44:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!