2015-07-20 55 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">