2017-02-20 60 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