Bootstrap 4表问题

问题描述:

我目前正在使用Bootstrap 4制作模板。我有一个有四行的表格,这里是指向上述网站的链接:hereBootstrap 4表问题

现在用CSS我这里只是链接:

a { 
color: #F0FFFF; 
} 

a:visited { 
color: #00FFFF; 
} 

a:hover { 
text-decoration: none; 
} 

但在第四行,第四连接不遵循上述CSS规则。我的问题是我在CSS上犯了一个错误吗?还是BootStrap 4对表有限制?使用BootStrap文档,它仅显示三行的示例。看看here

+0

你可以提供你的代码,你已经尝试了什么???对于我们来说,理解你的尝试会容易得多。我不认为引导程序中存在表格行限制 –

+0

请考虑添加你的html代码,可能会有一些问题。并且您提供了您的本地路径,该路径指向您的系统中的C:文件夹。试试'plnkr'或'jsbin' –

+0

https://plnkr.co/edit/dauOWEr9XtnDC67xRCNB?p=preview检查这个 –

下面是表HTML:

<table class="table table-striped table-inverse"> 
    <thead> 
    <tr> 
    <th>Date</th> 
    <th>Area</th> 
    <th>Venue</th> 
    <th>Tickets</th> 
    </tr> 
    </thead> 
    <tbody> 
    <tr> 
    <th scope="row">June 16, 2017</th> 
    <td>Auburn Hills, MI</td> 
    <td><a href="https://www.palacenet.com/">Palace Of Auburn Hills</a></td> 
    <td><a href="#"> 
    <button type="button" class="btn btn-primary btn-sm" data-toggle="button" aria-pressed="false" autocomplete="off"> 
     Tickets!! 
    </button></a> 
    </td> 
    </tr> 
    <tr> 
    <th scope="row">June 19, 2017</th> 
    <td>Los Angeles, CA</td> 
    <td><a href="http://www.lacoliseum.com/">Los Angeles Memorial Coliseum</a>  </td> 
    <td><button type="button" class="btn btn-primary btn-sm" data-toggle="button" aria-pressed="false" autocomplete="off"> 
     Tickets!! 
    </button></a> 
    </td> 
</tr> 
<tr> 
    <th scope="row">June 23, 2017</th> 
    <td>Toyko, Japan</td> 
    <td><a href="http://www.nipponbudokan.or.jp/">Nippon Budokan</a></td> 
    <td><button type="button" class="btn btn-primary btn-sm" data-toggle="button" aria-pressed="false" autocomplete="off"> 
     Tickets!! 
    </button></a> 
    </td> 
</tr> 
<tr> 
    <th scope="row">June 26, 2017</th> 
    <td>*</td> 
    <td><a href="#">* Festival</a></td> 
    <td><button type="button" class="btn btn-primary btn-sm" data-toggle="button" aria-pressed="false" autocomplete="off"> 
     Hey! 
    </button></a> 
    </td> 
    </tr> 
    </tbody> 
    </table> 
+0

为什么你有''关闭按钮后的锚标记?我找不到开标签。对于有问题的代码,请使用'plnkr'或'jsbin'。如果它不能解决问题,请删除您的答案。 –

+0

奇怪的是,我已经回到那个页面,而没有编辑特定的页面,但玩弄了CSS。现在,我的问题不再是一个问题,我的猜测是我在CSS中犯了一个错误。我应该删除吗? –