search

Home  >  Q&A  >  body text

html5 - Problem with bootstrap modifying style

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?

迷茫迷茫2791 days ago723

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:26:18

    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

    • You can use some public cdn to loadcdn加载bootstrap

    reply
    0
  • Cancelreply