为什么我的按钮具有相同的类别时却具有不同的颜色

时间:2018-09-07 06:50:35

标签: twitter-bootstrap bootstrap-4

为新闻应用程序做一个简单的界面,我有六个按钮,其中两个是蓝色的(btn-primary),而它们都有相同的类。

此处的完整代码https://codepen.io/tarekhassab/pen/Oojdgw?editors=1010

            <button type="button" class="btn btn-primary"> Technology </button>
            <button type="button" class="btn btn-priamry"> Business </button>
            <button type="button" class="btn btn-priamry"> Science </button>
            <button type="button" class="btn btn-primary"> Entertainment </button>
            <button type="button" class="btn btn-priamry"> Health </button>
            <button type="button" class="btn btn-priamry"> Sports </button>

1 个答案:

答案 0 :(得分:2)

查看此按钮,它们的拼写错误的btn-priamry

<button type="button" class="btn btn-priamry"> Business </button>
<button type="button" class="btn btn-priamry"> Science </button>
<button type="button" class="btn btn-priamry"> Health </button>
<button type="button" class="btn btn-priamry"> Sports </button>

应该为btn-primary