2015-07-20 73 views
0

我开始在我的项目中使用引导程序。包含bootstrap.css时缺少表格边框

我在所有页面上都包含bootstrap.css。问题是,现在我所有的桌子都失去了边界。

这是我的主要的CSS:

.tabla{ 
    font-family:Verdana; 
    font-size:8pt; 
    font-weight:normal; 
    color:#333333; 
    background-color:#EFEFEF; 
    margin:0 auto; 
} 

好像bootstrap.css被重写某些属性。所有包含我的样式文件的文件,然后是bootstrap.css。

注意:不可见边框是行之间的边界。外边框看起来不错。

回答

0

你可以将它们添加到你的?

.tabla { 
 
font-family:Verdana; 
 
    font-size:8pt; 
 
    font-weight:normal; 
 
    color:#333333; 
 
    background-color:#EFEFEF; 
 
    margin:0 auto; 
 
    border-style: solid; 
 
    }

记住之前添加引导CSS在HTML 自己的自定义CSS文件是这样的:

<!-- Optional theme --> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> 

<!-- Personal CSS --> 
<link rel="stylesheet" href="css/main.css">