html Colspan / Rowspan用于显示设置为表格单元的元素

 

问题描述:

我有以下代码:

<div class="table">
    <div class="row">
        <div class="cell">Cell</div>
        <div class="cell">Cell</div>
    </div>
    <div class="row">
        <div class="cell colspan2">Cell</div>
    </div>
</div>

<style>
    .table {
        display: table;
    }
    .row {
        display: table-row;
    }
    .cell {
        display: table-cell;
    }
    .colspan2 {
        /* What to do here? */
    }
</style>

非常简单。如何为带有的元素添加colspan(或等价的colspan)display: table-cell?


下面的代码正确发送了电子邮件,但发送给了正文。我需要在邮件正文中显示html,但我无法做到这一点。网络中的示例不会发送电子邮件:(如何修复我的代码以发送带有html正文的电子邮件?万分感谢!<?php$ ...