When using the bootstrap framework, can I directly modify the css style provided by the bootstrap framework? What would be the problem if I modify it directly?
It’s okay to modify it directly, but it’s not recommended.
The general approach is: create a new one bootstrap-local.css (name it as you wish), and append your own style package coverage after all the referenced styles;
Benefits:
The updated version will not overwrite the styles you wrote
If there is a plug-in based on bootstrap, changing it directly may affect the plug-in
It’s okay to modify it directly, but it’s not recommended.
The general approach is: create a new one
bootstrap-local.css
(name it as you wish), and append your own style package coverage after all the referenced styles;Benefits:
The updated version will not overwrite the styles you wrote
If there is a plug-in based on
bootstrap
, changing it directly may affect the plug-inYou can use some public
cdn
to loadcdn
加载bootstrap