Heim  >  Fragen und Antworten  >  Hauptteil

Wie richtet man Text in HTML so aus, dass er aneinander ausgerichtet ist?

Ich versuche, dies für meinen aktuellen Code zu erstellen. Wie mache ich das? Hier ist ein Preisrechner. Ich benötige ein Beispiel, bevor ich mit dem Codieren beginne [1]: https://i.stack.imgur.com/2xE4f.png

<div class="grid-item">
        <thead>
          <td>App-Benutzer</td><br>
          <td>pro 7,50€</td><br>
          <td>Backend-Benutzer</td><br>
          <td>pro 35,50€</td><br>
        </thead>
        <hr>
        <span class='summe'>0.00</span><br>
        </div>

P粉481366803P粉481366803375 Tage vor520

Antworte allen(1)Ich werde antworten

  • P粉256487077

    P粉2564870772023-09-14 18:35:41

    尝试下面的代码。您可以将您的详细信息创建为表格

    <!DOCTYPE html>
    <html>
    <style>`
    table, th, td {
      border:1px solid black;
    }
    </style>
    <body>
    <table style="width:100%">
      <tr>
        <td>App-Benutzer
        </td>
        <td>75,00€</td>
      </tr>
      <tr>
        <td>Backend-Benutzer</td>
        <td>175,00€</td>
      </tr>
    </table>
    </body>
    </html>

    Antwort
    0
  • StornierenAntwort