/ Forside/ Teknologi / Udvikling / HTML / Spørgsmål
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
HTML
#NavnPoint
molokyle 11184
Klaudi 5506
bentjuul 3377
severino 2040
smorch 1950
strarup 1525
natmaden 1396
scootergr.. 1320
e.c 1150
10  miritdk 1110
uendelig højde i iframe
Fra : xick
Vist : 598 gange
50 point
Dato : 30-10-04 19:43

Jeg har et problem med min nye hjemmeside. Jeg har lavet designet som et banner øverst, en navigationsbar under, og til sidst en iframe.

Her var det så meningen, at iframe'en skulle bliver større alt efter hvor meget indhold der er på siden der loades i iframe'en .. Hvordan gøres dette?

Koden til min iframe:

[kode]
<iframe name="main" id="main" frameborder="0" class="iframe" height="*" width="684" marginwidth="0" marginheight="0" src="nyheder.htm" />
[/kode]

 
 
Kommentar
Fra : xick


Dato : 30-10-04 19:48

Kode
<iframe name="main" id="main" frameborder="0" class="iframe" height="*" width="684" marginwidth="0" marginheight="0" src="nyheder.htm" />


Den kodebox glippede lige

Kommentar
Fra : molokyle


Dato : 30-10-04 20:00
Kommentar
Fra : xick


Dato : 30-10-04 20:12

Hmm.. Jeg kan ikke se nogle steder hvad jeg skal skrive for at få min iframe til at blive kort hvis der kun er 1 linie på target-siden, og lang hvis der er 100 linier på target-siden...

Kommentar
Fra : smorch


Dato : 31-10-04 11:46

Har du prøvet med height="100%" ?

Here are a few more commands that you can use in order to alter the frames on your page. Each is fairly self-explanatory and doesn't really require an example. I've used them all just to make sure they work. Just stick the command, with whatever setting you want, into the IFRAME command to see it work.

HEIGHT="--": This acts just like the height command in terms of an image (see here). It defines the frame's height, in pixels or percentage.
WIDTH="--": Ditto this one in terms of frame width.
MARGINWIDTH="--": This sets the margin width in either pixels or percentage.
MARGINHEIGHT="--": Ditto, but on height.
SCROLLING="--": If the information inside the frame is too long to display, then a scroll bar will appear. You can stop it by adding this command set to "no."
ALIGN="--": This works like the align command in terms of images (see here). It denotes where text will appear when surrounding the frame.
NORESIZE: Add this, and the user will not be able to resize your frame.


Du har følgende muligheder
Dette spørgsmål er blevet annulleret, det er derfor ikke muligt for at tilføje flere kommentarer.
Søg
Reklame
Statistik
Spørgsmål : 177419
Tips : 31962
Nyheder : 719565
Indlæg : 6407871
Brugere : 218876

Månedens bedste
Årets bedste
Sidste års bedste