如何隐藏在每个html标签后附加的br标签

时间:2018-09-21 09:32:27

标签: html css

请提供任何相关的解决方案隐藏br标签,该标签在每个html标签之后追加,我尝试但未修复,使用display none br标签时,它还会在样式上附加br标签, 如何不显示br标签,不附加任何html标签, 在zoho发票https://invoice.zoho.in编辑器中编写此html 这是代码:

<style>
    <br>div br {
        display: none
    }

    <br>
</style><br><br>
<div style="font-family: Helvetica Neue, Helvetica, Helvetica, Arial, sans-serif;"><br> <br><br><br>
    <table style="width: 100%;">
        <tbody>
            <tr>
                <td></td>
                <td bgcolor="#FFFFFF "><br>
                    <div style="padding: 15px; max-width: 600px;margin: 0 auto;display: block; border-radius: 0px;padding: 0px; border: 1px solid lightseagreen;"><br>
                        <br><br><br><br><br><br>
                        <table style="width: 100%;background: #5d5657 ;">
                            <tbody>
                                <tr>
                                    <td><br>
                                        <div><br> <br><br><br><br>
                                            <table width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td rowspan="2" style="text-align:center;padding:10px;"><br>
                                                            <img style="float:left; " width="111" src="https://wire-itsolutions.com/images/logo.png">
                                                            <br> <br> <span style="color:white;float:right;font-size: 13px;font-style: italic; padding:10px; font-size: 14px; font-weight:normal;"><br>
                                                                <div>Wire-IT Solutions </div><br>
                                                                <div>915 NW 1st Ave Apt H808,</div><br>
                                                                <div>Miami, FL 33136</div><br>
                                                            </span><br> </td>
                                                    </tr>
                                                </tbody>
                                            </table><br>
                                        </div><br>
                                    </td>
                                </tr>
                            </tbody>
                        </table><br> <br><br><br><br><br><br><br><br>
                        <table style="padding: 10px;font-size:14px; width:100%;">
                            <tbody>
                                <tr>
                                    <td style="padding:10px;font-size:14px; width:100%;"><br>
                                        <p>Hi [FIRSTNAME],</p><br>
                                        <p><br> Your verification code for email verify is [VCODE] . [SITE]. </p><br>
                                        <br>
                                        <p>&nbsp;</p><br>
                                        <p>Thank you regard </p><br> <br> <br>
                                    </td>
                                </tr>
                                <tr>
                                    <td><br>
                                        <div align="center" style="font-size:12px; margin-top:20px; padding:5px; width:100%; background:#eee;"><br>
                                            © 2018 <a href="#" style="color:#333; text-decoration: none;">Wire-IT
                                                Solutions. All Rights Reserved.<br><br> </a><br> </div><br>
                                    </td>
                                </tr>
                                <tr>
                                    <td><small></small></td>
                                </tr>
                            </tbody>
                        </table><br>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>

1 个答案:

答案 0 :(得分:0)

您可以在css文件中尝试此操作,然后将该css文件导入HTML。

br {
        display: none
    }

我建议使用Visual Studio Code作为编辑器,它是一个免费且非常好的编辑器。