2017-02-20 57 views
0

我想改變我的表的邊界的顏色,我使用類。表格邊界的顏色是灰色/銀色,我想要將其改爲黑色而不使用CSS,我使用style =「border-color:black;」但它不會改變任何想法嗎?!更改我的引導表的邊界的顏色沒有css

這是我的XML文件

<table class="table table-bordered" style="border-color:black;"> 
          <tr class="border-black"> 
           <th class="text-center"> 
            <h3> Bulletin de paie </h3> 
           </th> 
           <th class="text-center" align="center"> 
            Adresse 
            <br></br> 
            <span t-field="o.adresse"/> 
           </th> 
           <th class="text-center" align="center"> 
            Date de paie 
            <br></br> 
            <span t-field="o.datedepaie"/> 
           </th> 
          </tr> 
          <tr bordercolor="black"> 
           <th class="text-center"> 
            <strong>Matricule</strong> 
            <br></br> 
            <span t-field="o.matricule"/> 
           </th> 
           <th class="text-center"> 
            <strong>Nom et Prénom</strong> 
            <br></br> 
            <span t-field="o.name"/> 
           </th> 
           <th class="text-center"> 
            <strong>CNSS</strong> 
            <br></br> 
            <span t-field="o.cnss"/> 
           </th> 
          </tr> 
          <tr bordercolor="black"> 
           <th class="text-center"> 
            <strong>Date de naissance</strong> 
           <br></br> 
            <span t-field="o.datenaissance"/> 
           </th> 
           <th class="text-center"> 
            <strong>Date d'embauche</strong> 
            <br></br> 
            <span t-field="o.dateembauche"/> 
           </th> 
           <th class="text-center"> 
            <strong>Fonction</strong> 
            <br></br> 
            <span t-field="o.fonction"/> 
           </th> 
          </tr> 

         </table> 

         <table class="table table-bordered"> 
       <thead> 
        <tr> 
         <th>Libellé</th> 
         <th>Base</th> 
         <th>Taux (%)</th> 
         <th>Gains</th> 
         <th>Retenues</th> 

        </tr> 
       </thead> 
       <tbody class="invoice_tbody"> 
        <tr t-foreach="o.salaire_id" t-as="l"> 
         <th><span t-field="l.libelle"/></th> 
         <th><span t-field="l.base"/></th> 
         <th><span t-field="l.taux"/></th> 
         <th><span t-field="l.gains"/></th> 
         <th><span t-field="l.retenues"/></th> 
        </tr> 
        <tr> 
           <th colspan="3" class="text-right"> 
           <strong>Total</strong> 
           </th> 
           <th class="text-center"> 
            <span t-field="o.total"/> 
           </th> 
           <th class="text-center">  
            <span t-field="o.totall"/> 
           </th> 
        </tr> 
        <tr> 
           <th colspan="5" class="text-right"> 
            <strong>Net à payer:</strong> 
            <span t-field="o.net"/> 
            <br></br> 
           </th> 
        </tr> 
       </tbody> 
      </table> 

        </div> 
       </div> 
        <div class="footer"> 
+0

您剛剛使用內聯CSS,它仍然是CSS。 – g3mini

回答

0

IIRC邊框顏色設置的行,TD的,和日的。儘管如此,它已經不在我的頭頂了。

你需要改變它們的邊框顏色,而不是表的

+0

謝謝你的anwer其實我不需要過濾邊框顏色我需要將邊框的顏色改爲黑色而不是銀色,因爲當我打印我的報告時te邊框不清晰 – ilham

+0

改變的意思是改變一些東西,你可以嘗試我發佈=) – g3mini

0

你應該張貼你的CSS文件。查看現有樣式將會很有幫助。另外,換行符不需要結束標籤。我認爲你的<br></br>正在破壞HTML。

你只需要<br />

+0

@ gizzthedj非常感謝您的回放我沒有css文件我希望如果有方法來改變顏色而不使用css – ilham

+0

我能夠將邊框顏色更改爲紅色 - 只是改變#F00到#000,它應該工作。查看https://jsfiddle.net/hco6uhw2/2/。我知道你不想使用CSS,但我假設你想改變內聯樣式?沒有看到CSS,很難知道哪些樣式正在從「table table-bordered」和「border-black」繼承。希望這可以幫助! – grizzthedj

+0

非常感謝你對我來說不是workinf我不知道爲什麼也許是因爲我使用XML而不是HTML?這是問題嗎? – ilham