为新闻应用程序做一个简单的界面,我有六个按钮,其中两个是蓝色的(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>
答案 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