【问题标题】:React-bootstrap button bsStyle反应引导按钮 bsStyle
【发布时间】:2015-10-23 12:20:04
【问题描述】:

好的,我显然遗漏了一些东西,但现在无法弄清楚。

import React from 'react';
import {Button} from 'react-bootstrap';
let App=React.createClass({

    render: function () {
        return (
            <div>
            <Button bsStyle="primary" bsSize="large">Primary</Button>
            <Button bsStyle="success">Success</Button>
            <Button>Sketo</Button>
             </div>
        );
    }

});

React.render(<App />, document.getElementById('app'));

我可以看到按钮,但没有应用样式。 Thay 都像第三个一样简单。灰色和小。我错过了什么?

【问题讨论】:

    标签: react-bootstrap


    【解决方案1】:

    我觉得App组件工作正常~,我测试的时候没问题。 也许你错过了一件事:在 Bootstrap 的 CSS 中链接。 尝试在 HTML 的头部添加链接样式表。

    【讨论】:

    • 我知道这很容易。感谢您抽出宝贵时间回答!
    • 是的,react-bootstrap 包包含任何样式表。 :)
    猜你喜欢
    • 2015-06-24
    • 2020-05-27
    • 2017-02-01
    • 1970-01-01
    • 2023-01-18
    • 2021-12-01
    • 2015-06-01
    • 2017-11-29
    • 2023-03-09
    相关资源
    最近更新 更多