2014-11-25 31 views
0

我使用引導程序,當我嘗試設置.modal和.modal標題背景顏色默認不透明度時,您可以看到模式更改爲白色的網站。我想保持不透明度爲默認值,只更改模態和模態標題顏色。這是我使用的代碼:在的頂部bootstrap模式不透明度變爲白色

.modal { 
    background-color: white; 
    font-family: Georgia, 'Times New Roman', Times, serif; 
    font-size:16px; 

    } 

.modal-header { 
    background-color: blue; 
    font-family: Georgia, 'Times New Roman', Times, serif; 
    font-size:24px; 
} 

回答

0

的.modal你應該.modal內容和.modal頭

.modal-content { 
    background-color: white; 
    font-family: Georgia, 'Times New Roman', Times, serif; 
    font-size:16px; 

} 

.modal-header { 
    background-color: blue; 
    border-radius: 6px; 
    border-bottom-left-radius: 0; 
    border-bottom-right-radius: 0; 
    font-family: Georgia, 'Times New Roman', Times, serif; 
    font-size:24px; 
} 
+0

這個工程工作,而不是現在的弧形角模態不見了 – user3312792 2014-11-25 12:47:51

+0

編輯了答案。將邊框半徑添加到標題。 – anpsmn 2014-11-25 12:56:41