如何在 Bootstrap v 4.5.x CDN 中启用 RFS
How to enable the RFS in Bootstrap v 4.5.x CDN
我正在阅读 bootstrap 文档,我阅读了这篇文章... Bootstrap v4.3 附带了启用响应字体大小的选项,允许文本在设备上更自然地缩放和视口 sizes.RFS 可以通过将 $enable-responsive-font-sizes Sass 变量更改为 true 来启用。
我的问题是,如何使用 CDN 启用此功能 Bootstrap
https://getbootstrap.com/docs/4.3/content/typography/#responsive-font-sizes
我认为您无法使用 CDN 版本做到这一点。它说您需要 re-compile bootstrap 自己才能让 RFS 工作。所以你需要使用 npm 安装源。
Bootstrap v4.3 ships with the option to enable responsive font sizes, allowing text to scale more naturally across device and viewport sizes. RFS can be enabled by changing the $enable-responsive-font-sizes Sass variable to true and recompiling Bootstrap.
如果需要使用CDN可以添加以下内容
<link href="https://cdn.jsdelivr.net/gh/coliff/bootstrap-rfs/bootstrap-rfs.css" rel="stylesheet">
我正在阅读 bootstrap 文档,我阅读了这篇文章... Bootstrap v4.3 附带了启用响应字体大小的选项,允许文本在设备上更自然地缩放和视口 sizes.RFS 可以通过将 $enable-responsive-font-sizes Sass 变量更改为 true 来启用。
我的问题是,如何使用 CDN 启用此功能 Bootstrap
https://getbootstrap.com/docs/4.3/content/typography/#responsive-font-sizes
我认为您无法使用 CDN 版本做到这一点。它说您需要 re-compile bootstrap 自己才能让 RFS 工作。所以你需要使用 npm 安装源。
Bootstrap v4.3 ships with the option to enable responsive font sizes, allowing text to scale more naturally across device and viewport sizes. RFS can be enabled by changing the $enable-responsive-font-sizes Sass variable to true and recompiling Bootstrap.
如果需要使用CDN可以添加以下内容
<link href="https://cdn.jsdelivr.net/gh/coliff/bootstrap-rfs/bootstrap-rfs.css" rel="stylesheet">