Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Variable Zeilenhöhe

Empfohlene Antworten

Veröffentlicht

Hallo, noch eine Frage zu Tabellen. Tabellenzeilen passen sich, wenn es sonst

nicht anders definiert ist, ja immer in ihrer Höhe dem Content an. Jetzt ist es

aber bei meiner neuen Website mit dem IFrame nicht so.

Ich hänge mal den Code an, damit ihr ein Bild davon bekommt:

<table border="1" cellspacing="0" align="center" width="800">



<tr height="200">

<td width="800" colspan="3"><img src="./Bilder/DTLogo<?php

$number=round (rand (1,4),0);

echo $number;

?>.jpg"></img></td>

</tr>


<tr>    [COLOR="red"]<- Die Höhe dieser Zeile soll sich nach der länge des im IFrame-enthaltenen Textes richten[/COLOR]

<td width="100" valign="top">

  <table border="0" cellpadding="0" cellspacing="10">

  <tr>

  <td align="center"><a href="index.php?site=home">Home</a></td>

  </tr>

  <tr>

  <td align="center"><a href="index.php?site=regeln">Regeln</a></td>

  </tr>

  <tr>

  <td align="center"><a href="index.php?site=anmelden">Anmelden</a></td>

  </tr>

  <tr>

  <td align="center"><a href="index.php?site=anleitung">Anleitung</a></td>

  </tr>

  <tr>

  <td align="center"><a href="index.php?site=community">Community</a></td>

  </tr>

  <tr>

  <td align="center"><a href="http://www.darktemplarforum.de.vu/" target="_blank">Forum</a></td>

  </tr>

  <tr>

  <td align="center"><a href="index.php?site=support">Support Us</a></td>

  </tr>

  <tr>

  <td align="center"><a href="index.php?site=home">GM Liste</a></td>

  </tr>

  </table>

</p>

</td>

<td width="600">  [COLOR="red"]<- Das ist die Zelle[/COLOR]

<iframe frameborder="0" width="600" scrolling="no" height="100%" src="<?php

$seite=$site;

if ($seite=="")

{

echo "home";

}

else 

{

echo $seite; 

}

?>.htm"></iframe>  [COLOR="red"]<- Und hier ist der IFrame nachdem sich die Spaltenhöhe richten soll[/COLOR]

</td>

<td width="100" align="center" valign="top">

<br>

Bla

Blubb

</p>

</td>

</tr>


<tr height="50">

<td width="800" colspan="3">Noch leer</td>

</tr>


</table>

Also wenn ich das richtig in Erinnerung habe, dann passen sich IFRAMES nicht wie Tabellenzellen automatisch dem Inhalt an, was die Größe angeht.

Mit JavaScript lässt sich das aber lösen, so dass die Größe immer dem entsprechenden Inhalt angepasst ist. Eine genaue Erklärung mit Beispiel-Code findest du hier: iframes (ist so ziemlich in der Mitte der Seite). Ich denke das sollte dein Problem lösen.

tine

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.