KillerBean Posted August 22, 2010 Report Share Posted August 22, 2010 (edited) Labs vakars. Gribēju apjautāties, varbūt kāds zin, kā novērst šādu lietu <div style="width:500px;"> <div style="width:200px;float:left;background-color:red;">X1</div> <div style="position:relative;width:400px;top:2px;left:0px;background-color:green;">X2</div> </div> Lai IE5.5/6 tas attēlojas tāpat, kā citos browseros?! Edited August 22, 2010 by KillerBean Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 22, 2010 Report Share Posted August 22, 2010 Kas tas par "display" bez vērtības?? Quote Link to comment Share on other sites More sharing options...
KillerBean Posted August 22, 2010 Author Report Share Posted August 22, 2010 ahh.. sorry, tas visādus variantus bakstos, netika nodzēsts līdz galam.. shas no-editošu Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 22, 2010 Report Share Posted August 22, 2010 Neesmu drošs, vai IE 5 atbalsta tādas lietas kā float un position. Vismaz abas. Nu nez. Bet kam vajag IE 5 atbalstu? Tas jau ir "hardcore"! xD Quote Link to comment Share on other sites More sharing options...
KillerBean Posted August 22, 2010 Author Report Share Posted August 22, 2010 tas tā.. līdz ar.. bet primāri jau ir IE6. Quote Link to comment Share on other sites More sharing options...
Maris-S Posted August 23, 2010 Report Share Posted August 23, 2010 (edited) Tev vajadzīga absolūtā pozicionēšana. <div style="width:500px; position: relative"> <div style="width:200px; float:left; background-color:red">X1</div> <div style="position: absolute; width:400px; top:2px; left:0px; background-color:green;">X2</div> <br> </div> Edited August 23, 2010 by Maris-S Quote Link to comment Share on other sites More sharing options...
Kavacky Posted August 23, 2010 Report Share Posted August 23, 2010 Ieej ar IE6 kaut kādā Feisbukā vai Jūtubā un izdomā, ko darīt ar IE6. Quote Link to comment Share on other sites More sharing options...
KillerBean Posted August 23, 2010 Author Report Share Posted August 23, 2010 danke schōn :) Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 23, 2010 Report Share Posted August 23, 2010 On 8/23/2010 at 7:34 AM, Kavacky said: Ieej ar IE6 kaut kādā Feisbukā vai Jūtubā un izdomā, ko darīt ar IE6. izdomaa patsC.. laikam nekad nesi saskaries ar 'arzemju' klientiem .. :( shamiem parbaude ir uz IE6 ... (IE5 nu gan var staigaties 'talam kaajam' ) Quote Link to comment Share on other sites More sharing options...
foxsk8 Posted August 23, 2010 Report Share Posted August 23, 2010 Vispārīgi, jau kā var ielikt 500 platuma, abus elementus ar kopējo platumu 600. Tur arī bija gļuks, un nekādus absolutos nevajadzēja. Quote Link to comment Share on other sites More sharing options...
KillerBean Posted August 24, 2010 Author Report Share Posted August 24, 2010 nu jā.. bet citi browseri to saprot un nemet otro DIVu nākošajā līnijā. idejiski to pašu var iegūt ar absolutu, bet tad ir problēma ar to, ka absolūtā DIV augstums neietekmē relatīvā parent DIV augstumu. Quote Link to comment Share on other sites More sharing options...
Maris-S Posted August 24, 2010 Report Share Posted August 24, 2010 (edited) Cik sapratu tad viņam vajag vienu div otram pa virsu, skatoties pēc viņa pozicionēšanas attālumiem, ja doma ir nolikt vienu otram blakus, tad jā platuma izmēri nav pareizi sarēķināti. Apkārtējā div augstuma izlabošanai varētu palīdzēt 'clear floats' izmantošana. Tas <br> manējā piemērā ir tāds ne css risinājums, lai izlabotu ārējā div augstumu. Edited August 24, 2010 by Maris-S Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.