为什么我的react-bootstrap引入以后使用没有样式

qqlovefanfan 2016-02-29 03:08:49
为什么我的react-bootstrap引入以后使用没有样式
...全文
921 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
functionsub 2016-02-29
  • 打赏
  • 举报
回复
First add the Bootstrap CSS to your project; check here if you have not already done that. Note that:

    Because many folks use custom Bootstrap themes, we do not directly depend on Bootstrap. It is up to you to to determine how you get and link to the Bootstrap CSS and fonts.
    React-Bootstrap doesn't depend on a very precise version of Bootstrap. Just pull the latest and, in case of trouble, take hints on the version used by this documentation page. Then, have Bootstrap in your dependencies and ensure your build can read your Less/Sass/SCSS entry point.
看,确实没有,这是react-bootstrap官网上第一句话。 http://react-bootstrap.github.io/getting-started.html
functionsub 2016-02-29
  • 打赏
  • 举报
回复
你看看样式表是不是要手动引入吧。 我没用过react-bootstrap,不知道他的js代码里有没有自动在页面上加入CSS文件 直接看加载好的页面里有没有对应的样式就可以了。 目测是没有。。
qqlovefanfan 2016-02-29
  • 打赏
  • 举报
回复

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧