dprc88435 2014-07-17 07: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 08:54
    关注

    CSS

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部