第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何實(shí)現(xiàn)從嵌套的 DVI 到包含類到樣式的表的代碼轉(zhuǎn)換?

如何實(shí)現(xiàn)從嵌套的 DVI 到包含類到樣式的表的代碼轉(zhuǎn)換?

PHP
回首憶惘然 2021-10-08 15:33:22
情況如下:我想將嵌套的 DIV 元素更改為表格元素,我希望將類設(shè)置為內(nèi)聯(lián)樣式。我現(xiàn)在有一個包含類和樣式屬性的示例數(shù)組:$classes    = array(            'container' => 'width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;',            'card' => 'position: relative;display: -ms-flexbox;display: flex;-ms-flex-direction: column;flex-direction: column;min-width: 0;word-wrap: break-word;background-color: #fff;background-clip: border-box;border: 1px solid rgba(0, 0, 0, 0.125);border-radius: 0.25rem;',        );然后將此代碼轉(zhuǎn)換為以下內(nèi)容:<div class="container">    01    <div class="card">        02    </div></div>然后將從此代碼創(chuàng)建此代碼:<table>    <tr>        <td class="container" style="width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;">            01            <table>                <tr>                    <td class="card" style="position: relative;display: -ms-flexbox;display: flex;-ms-flex-direction: column;flex-direction: column;min-width: 0;word-wrap: break-word;background-color: #fff;background-clip: border-box;border: 1px solid rgba(0, 0, 0, 0.125);border-radius: 0.25rem;">                        02                    </td>                                </tr>            </table>        </td>    </tr></table>有誰知道我怎么能做這樣的事情?自周五以來,我一直在試驗(yàn) preg_replace_callback 和 DOMDocument。不幸的是一切都沒有成功。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 123 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號