Jump to content
php.lv forumi

tabulas, iframe un opera


Recommended Posts

piemeram ir sads kods

<table border="1" width="100%" height="100%">
<tr>
<td>test</td>
<td rowspan="2" width="100%" height="100%" valign="center">
	<IFRAME src="http://www.one.lv" width="100%" height="100%"></iframe>
</td>
</tr>
<tr>
<td>test2</td>
<td>test3</td>
</tr>
</table>

 

Uz IE un FF iframe aiznem normali 100% augstumu, bet opera nesaprot un uzstaisa vinu mazinu (taaka vispar height nebutu noradits), ja augstumam liek lielumu pikseljos tad viss ir normali, bet % nesaprot!

 

Kaa seit lai izliidzas?

Link to comment
Share on other sites

par doctype - imho labākais būs tas kurā validējas esošais htmls ar mazāk kļūdām - ideāli ja ar 0, bet ja gribi 'kruta', tad protams xhtml-strict.

 

par iframe - pamēģini

<iframe style="width:100%; height:100%;" ..

/me slinkums operu vērt vaļa :p

Edited by v3rb0
Link to comment
Share on other sites

izvelejos

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

un CSE validejas bez kludam. Liekot xhtml-strict viss izcakarejaas, bet izmantojot so te, nekadu butisku problemu nevajadzetu but?

 

un iframe stailosana ar nepalidz...

Link to comment
Share on other sites

hm, nezinaju, meiginasu uzstaisit perestroiku uz html 4...

 

Nav vairs nekadu ideju pa iframe? Visadi izcakarejos, nesanak...

 

+

 

Ienaca ideja prataa bet nemacesu isti uzstaisit!

Tatad ar javascript nosaka tabulas lauka augstumu, kurs ir uzlikts uz 100% tatad staipaas, ar JS nosaka patreizejo augstumu. Par cik operaa normali attelojas iframe ar fiksetu augstumu, tad to fikseto augstumu pieskir sim tadu kads ir tabulas laukam.

Varbut kads varetu palidzet un urakstit kadu uzmetumu skriptam, jo ar JS taa ir kaa ir...

Edited by Blitz
Link to comment
Share on other sites

Zinu ka daru galigi greizi, bet varbut varat palidzet...

<script type="text/javascript">
function frameHeight() {
var cellHeight = document.getElementById("cell").offsetHeight
document.getElementById("frame").offsetHeight = cellHeight
}
</script>
<body onload=frameHeight()>
<table border="1" width="100%" height="100%">
<tr>
<td>test</td>
<td rowspan="2" width="100%" height="100%" valign="center" id="cell">
	<IFRAME src="./index.php" width="100%" id="frame"></iframe>
</td>
</tr>
<tr>
<td>test2</td>

</tr>
</table>
</body>

 

Ideja apmeram tada bet nesanak...

Link to comment
Share on other sites

a man šitā uz operas rādās 100%

<html><body><table border="1" width="100%" height="100%">
<tr>
	<td>test</td>
	<td rowspan="2" width="100%" height="100%" valign="center" id="cell">
		<iframe src="http://www.google.lv" width="100%" height="100%" id="frame" />
	</td>
</tr>
<tr>
	<td>test2</td>
</tr>
</table></body></html>

laikam sāls tur ka operai vajag lai iframe beidzas ar /> nevis aizverošo </iframe> tagu.

 

operas versija 9.0,winxp

Link to comment
Share on other sites

×
×
  • Create New...