Blitz Posted March 13, 2006 Report Share Posted March 13, 2006 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 More sharing options...
Grey_Wolf Posted March 13, 2006 Report Share Posted March 13, 2006 pamegjini width="*" Link to comment Share on other sites More sharing options...
Blitz Posted March 13, 2006 Author Report Share Posted March 13, 2006 grey wolf nestrada! Vajag lai iframe izspiestos pa visu td lauku... Link to comment Share on other sites More sharing options...
v3rb0 Posted March 13, 2006 Report Share Posted March 13, 2006 kas pa doctype? tablei propertijs height xhtml'ā (strict un arī transitional) laikam nemaz nebija. Tas ka browseri viņu ņem vēra ir uz browseru sirdsapziņas. Link to comment Share on other sites More sharing options...
Blitz Posted March 13, 2006 Author Report Share Posted March 13, 2006 doctype nav noradits, kadu labak noradit? neizskatas ka pie vainas butu tables height jo tabulu smuki sazimee pa visu logu, bet pats iframe neaizpildaas pa tabulas lauku... Link to comment Share on other sites More sharing options...
v3rb0 Posted March 13, 2006 Report Share Posted March 13, 2006 (edited) 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 March 13, 2006 by v3rb0 Link to comment Share on other sites More sharing options...
Blitz Posted March 13, 2006 Author Report Share Posted March 13, 2006 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 More sharing options...
bubu Posted March 13, 2006 Report Share Posted March 13, 2006 3.2 gan nu nav prātīgi ņemt html 4 vēl varu saprast, bet nu 3.2 gan ir pamatīga dinozauru aizvēsture. Link to comment Share on other sites More sharing options...
Blitz Posted March 14, 2006 Author Report Share Posted March 14, 2006 (edited) 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 March 14, 2006 by Blitz Link to comment Share on other sites More sharing options...
Blitz Posted March 14, 2006 Author Report Share Posted March 14, 2006 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 More sharing options...
v3rb0 Posted March 14, 2006 Report Share Posted March 14, 2006 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 More sharing options...
Blitz Posted March 14, 2006 Author Report Share Posted March 14, 2006 blin un es te nezin kadus brinumus veidoju... nu nekas, muzu dzivo muzu macies paldies... :) Link to comment Share on other sites More sharing options...
Recommended Posts