首頁  >  問答  >  主體

在添加了<span>標籤後,文字消失了

<p>我是一個學習Html設計電子郵件範本的新手。我需要在符號前面添加文本,並確保文本在下一行保持對齊。我正在使用<li>標籤來正確對齊符號後的文字。但是由於某種原因,它似乎不起作用。 </p> <p>在加上<li>標籤之後,文字不顯示,它消失了。如果我刪除<li>,文字又重新出現了。我不確定這種行為的原因是什麼。非常感謝任何幫助。提前致謝。 </p> <pre class="brush:php;toolbar:false;"><!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 m> ; </span> </p> </div> </td> </tr> </table> </div> <script src="script.js"></script> </body> </html></pre>
P粉226642568P粉226642568433 天前541

全部回覆(1)我來回復

  • P粉949848849

    P粉9498488492023-08-14 17:08:38

    我認為有些基本的HTML結構沒有遵守。我相信這是期望的輸出。

    <!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>

    回覆
    0
  • 取消回覆