HTML:如何强制带空格的单词分隔符在';他在牢房里不合适吗?

HTML:如何强制带空格的单词分隔符在';他在牢房里不合适吗?,html,css,odoo,qweb,Html,Css,Odoo,Qweb,我正在用OdooQWeb做一些动态表格 我做的桌子要有桌子的布局:固定的;边界塌陷:塌陷和宽度:100% 我想知道为什么“4科林公司”不像“3科林公司”那样破产 我尝试了很多可用的css样式,但无法获得我想要的pdf和html格式的结果。 这是我的SCS: .table-main-report-dn { width: 100%; border-collapse: collapse; table-layout: fixed; tr, td { border: 1px solid bla

我正在用OdooQWeb做一些动态表格
我做的桌子要有桌子的布局:固定的;边界塌陷:塌陷和宽度:100%
我想知道为什么“4科林公司”不像“3科林公司”那样破产
我尝试了很多可用的css样式,但无法获得我想要的pdf和html格式的结果。

这是我的SCS:

.table-main-report-dn {
width: 100%;
border-collapse: collapse;
table-layout: fixed;

tr, td {
    border: 1px solid black;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

td {
    padding: 4px;
}

td.name {
    width: 17%;
}

td.name-intra {
    width: 35%;
}

td.company {
    width: 33%;
}

td.birthday {
    height: 20%;
}

td.title {
    height: 44px;
    background-color: #EDEEE1;
}

td.text-title {
    vertical-align: baseline;
    text-align: center;
}

tr.main {
    td {
        height: 65px;
    }
}

td.main-info {
    height: 150px !important;
}
}

这是我的xml代码:

<tr t-foreach="o.participant_ids" t-as="participant" class="main">
                        <td>
                            <b><t t-esc="count"/>&#160;<t t-esc="participant.lastname"/>&#160;<t t-esc="participant.firstname"/>
                            </b>
                        </td>
                        <td>
                            <t t-esc="participant.parent_id.name"/>
                        </td>
                        <td>
                            <t t-if="participant.birth" t-esc="participant.birth.strftime('%d/%m/%Y')"/>
                        </td>
                        <t t-foreach="range(o.session_id.seance_count)" t-as="d">
                            <td></td>
                        </t>
                        <t t-set="count" t-value="count+1"/>
                    </tr>

  

你能帮我吗?

避免不间断空格(
&160;
)怎么样



分词:分词;为了你的td@ZiadDarwich,已经试过了,但不起作用。谢谢。请发布一个有效的代码?@ZiadDarwich,我的代码有效,但问题出在我的cssyes中,我无法复制。。