我是一个新的学习的网页设计邮箱模板.我需要在符号前添加文本,并确保文本保持对齐以适应下一行.我正在使用标记来正确对齐符号后面的文本.但由于某些原因,它似乎并没有奏效.

添加文本未显示的标记后,它将消失.如果我移除

  • the text appears again. I am not sure what is the reason for this behavior. Any help would be very much appreciated. Thanks in advance.
    <!DOCTYPE html>
    <html lang="en">
    
    <head>
      <meta charset="UTF-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <link rel="stylesheet" href="style.css" />
      <title>Browser</title>
    </head>
    
     <div class="b opaf v" style=font-size:0;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%>
                                <table cellpadding=0 style=border:none;vertical-align:top width=100%>
                                    <tr>
                                        <td align=left class=x style=font-size:0;word-break:break-word>
                                            <div style=text-align:left>
                                              <p style=margin:0;text-align:left><span style=font-size:12px;font-family:Arial,sans-serif;font-weight:400;color:#54565b;line-height:14px><span style=color:inherit;font-weight:inherit;font-family:inherit;font-size:65%;vertical-align:4px;line-height:0>&sect;</span><span><ul><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li></ul></span>
                                                </span>
                                               </p>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
      <script src="script.js"></script>
    </body>
    
    </html>
    
  • 推荐答案

    我在想,一些基本的HTML struct 是不遵循的.我认为是这样的,这是例外输出.

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
      <meta charset="UTF-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <link rel="stylesheet" href="style.css" />
      <title>Browser</title>
    </head>
    
    <body>
      <div class="b opaf v" style="font-size: 0; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%;">
        <table cellpadding="0" style="border: none; vertical-align: top; width: 100%;">
          <tr>
            <td align="left" class="x" style="font-size: 0; word-break: break-all;">
              <div style="text-align: left;">
                <ul style="margin: 0; padding-left: 20px; list-style-type: "&sect;;">
                  <li style="font-size: 12px; font-family: Arial, sans-serif; font-weight: 400; color: #54565b; line-height: 14px; position: relative;">
                    <span style="color: inherit; font-weight: inherit; font-family: inherit; font-size: 65%; vertical-align: 4px; line-height: 0;">&sect;</span>
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                  </li>
                </ul>
              </div>
            </td>
          </tr>
        </table>
      </div>
      <script src="script.js"></script>
    </body>
    
    </html>

    Html相关问答推荐

    Vue.js复选框对齐问题:在表格单元格中居中复选框

    我如何 Select 外部html文件元素作为选项,并显示在一个div与jQuery?

    在Quarto/Discrealjs演示文稿中只增加一个列表的填充

    如何在html和css中创建动态调整大小的表元素

    如何在所有屏幕大小下使带有背景图像的伪元素作为标题的衬底?

    当我关闭时,导航栏跳到了新的生产线

    在Firefox中,使用写入模式:Vertical-LR时,不随内容扩展的css弹性项

    CSS Grid:使网格行填充屏幕,将下一行推离屏幕

    如何创建嵌套的动态表单元素

    如何从elementor中的滑块中获取文本?

    如何使用CSS将页面标题水平居中对齐

    如何通过像图像一样的 元素来调整 SVG 图标的大小

    为什么我的 div 元素没有形成一个圆形时钟?

    css 网格创建空行和列

    如何制作一个布局,其中左侧固定为图像,右侧为按钮,中心或中间位置为文本?

    子 div 在父 div 中溢出

    如何让 backdrop-filter: blur() 效果在 iOS 上运行?

    如何突出显示 .qmd html 文件中的特定代码行

    无法使用 HTML 中的 Bootstrap 自上而下居中

    动态使用时波浪号不转换为绝对路径