dprc88435 2014-07-17 15:48
浏览 174
已采纳

如何给表白色背景颜色 - Bootstrap,Yii

I've modified the general Yii Crud generated index.php to not display the side menu and instead display a table. I've done this by overriding the default layout and by creating a column3.php This view file looks like this

    <?php $this->beginContent('//layouts/main'); ?>
      <div class="row-fluid">
        <div class="span3">

            <table class="table table-bordered">
    <form action="<?php echo Yii::app()->createUrl('recipient/processpayment', array('id'=>$id)) ?>" method="post" >
        <tr class="primary"><td> <h4>List Summary </h4> </td></tr>
        <tr ><td>
            &nbsp;&nbsp;<?php echo $numpeople; ?> Recipient(s)
        </td></tr>

        <tr ><td>
            &nbsp;&nbsp;Total Due: &nbsp;<?php echo $totaldue ?> Rwf
        </td></tr>          
    </form>

  </table>


        </div><!-- sidebar span3 -->
        <div class="span9">
        <div class="main">
            <?php echo $content; ?>
        </div><!-- content -->
    </div>
</div>
<?php $this->endContent();  ?>

Unfortunately the side of my screen is a grey color and I've realized that the table itself is simply composed of a couple of lines and text (meaning it is see-through). I'd like to change the background color of the table to be white - any suggestions would be greatly appreciated!

  • 写回答

1条回答 默认 最新

  • douzhi1924 2014-07-17 16:54
    关注

    CSS

    .table,
    .table tr,
    .table td {
        background-color: white !important;
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号