How to use Bootstrap CDN?

前端 未结 6 988
庸人自扰
庸人自扰 2020-12-23 10:04

I\'m trying to use a CDN on Bootstrap to increase performance to my website. However when referencing the CSS directly it works whereas using the CDN doesn\'t.

How

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 10:45

    follow this fiddle cdn usage http://jsfiddle.net/MgcDU

    css

    @import url('http://twitter.github.com/bootstrap/assets/css/bootstrap.css');
    .container {
       margin-top: 10px;
    }
    

    html

     

    Bootstrap jsFiddle Skeleton

    Fork this fiddle to test your Bootstrap stuff.

    Learn more about Bootstrap

提交回复
热议问题