【问题标题】:How to give table white background color - Bootstrap, Yii如何赋予表格白色背景颜色 - Bootstrap,Yii
【发布时间】:2014-09-08 14:17:36
【问题描述】:

我已将 Yii Crud 生成的一般 index.php 修改为 显示侧边菜单,而是显示一个表格。我通过覆盖默认布局并创建 column3.php 来完成此操作。这个视图文件看起来像这样

    <?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();  ?>

不幸的是,我的屏幕一侧是灰色的,我意识到表格本身只是由几行和文本组成(这意味着它是透明的)。我想将表格的背景颜色更改为白色 - 任何建议将不胜感激!

【问题讨论】:

    标签: php css twitter-bootstrap yii


    【解决方案1】:

    CSS

    .table,
    .table tr,
    .table td {
        background-color: white !important;
    }
    

    【讨论】:

      猜你喜欢
      • 2019-04-16
      • 2015-01-31
      • 2017-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-01
      • 2019-08-30
      相关资源
      最近更新 更多