IM24LV Posted September 24, 2006 Report Share Posted September 24, 2006 Vajadzētu ar css palīdzību div tagā uztaisīt krāsu pāreju(gradient). kā to izdarīt? Link to comment Share on other sites More sharing options...
Delfins Posted September 24, 2006 Report Share Posted September 24, 2006 uztaisi gradient-bildi un izstaipi kā background-image... Link to comment Share on other sites More sharing options...
IM24LV Posted September 24, 2006 Author Report Share Posted September 24, 2006 Bet vajag bez bildes! Link to comment Share on other sites More sharing options...
Klez Posted September 24, 2006 Report Share Posted September 24, 2006 http://www.google.lv/search?q=css%2Bgradient otrais links, ja nu tomeer nevari atrast tad: http://www.designdetector.com/demos/css-gradients-demo-1.php Link to comment Share on other sites More sharing options...
IM24LV Posted September 24, 2006 Author Report Share Posted September 24, 2006 http://www.designdetector.com/demos/css-gradients-demo-1.php es jau shito vakarr redzeeju, tikai nesaprotu kaa izdabuuut aaraa pashu kodu tieshi tam gradientam. jo tur tas kods ir samudzhinaats, kopaa ar to pashu skriptu. Link to comment Share on other sites More sharing options...
bubu Posted September 24, 2006 Report Share Posted September 24, 2006 Kas tad tur samudžināts? Tak paskaties uz CSS un <body> sākumu. Neko citu kā kaudzi ar vienpikseļa augstuma <div> elementiem, kas izstiepti pa visu lapu neredzēsi. Tb katram <div> ir sava background krāsa, kuru tas rāda. Uz php skriptu nemaz nevajag skatītites. Link to comment Share on other sites More sharing options...
IM24LV Posted September 24, 2006 Author Report Share Posted September 24, 2006 a citu variantu nava? man likaas ka bij jaabuut kkaadam iisam css kuraa vienkaarshi noraada saakuma un beigu kraasu! Link to comment Share on other sites More sharing options...
Delfins Posted September 24, 2006 Report Share Posted September 24, 2006 (edited) teorētiski var, ja tu uzdevelopēsi Mozilla-enginei tādu `fīču` un to tikai redzēsi tu pats vai cits, kam tu iedosi savu mozillas versiju. PS: nu man arī likās, ka CSS ir arī tāds īss propertijs #div { make-money: very-fast; } Edited September 24, 2006 by Delfins Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 24, 2006 Report Share Posted September 24, 2006 Tb katram <div> ir sava background krāsa, kuru tas rāda. Uz php skriptu nemaz nevajag skatītites. Tieshi vajag :) Vienkaarsh cikls... ar sakuma krasa, beigu kraasa un izvada aaraa <div style="Color:$krasa"> un tas arii viss..... P.S. bet par to kaudzi ar 1 px diviem tev pilniiga taisniiba.... Link to comment Share on other sites More sharing options...
bubu Posted September 24, 2006 Report Share Posted September 24, 2006 Nu kam man vajag skatīties uz php skriptu, lai saprastu kā tas html/css kods rada to gradientu? Es uzspiežu lapai view source un visu redzu. Nav jāpēta kautkāds mistisks kods. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 24, 2006 Report Share Posted September 24, 2006 es nebiju domaajis ka tev jaaskatass vienk ar PHP to genereet ;) Link to comment Share on other sites More sharing options...
IM24LV Posted September 24, 2006 Author Report Share Posted September 24, 2006 nu tad skaidrs, šitā kods ir vnk drausmīgs, un labāk tomēr ir likt bildi kā background... Link to comment Share on other sites More sharing options...
king999 Posted January 10, 2007 Report Share Posted January 10, 2007 Ka ieraudziju kodu ta noshausminaajos, cik slimi tas ir kko tadu veidot :) AR bildi butu kadas paardesmit reizes vieglak. Zinu, ka ir reizes kad nevar izmanotot bildi, bet tad labak iztikt bez taa ;) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 10, 2007 Report Share Posted January 10, 2007 (edited) king999 --> tev taisniiba 1. Kaapeec slimi? Un tie kas noliedz visu dizaina veidoshanu ar *.jpg (vai citaam img + tabulaam ) iznjemot CSS ir normaali? 2.taisniiba :) css pie BODY: background: #ffffff url('images/fons.jpg') repeat-x left top; i viss.. 3. Jaa! Ja uztaisiisi sho pashu ar bildeem (bez css) tad no manis Ljoti labs krogs... skat seit Edited January 10, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
ntw Posted January 11, 2007 Report Share Posted January 11, 2007 Kāpēc tev vajag bez tās bildes vispār? Gardientus pat parastā browserī var uzmeikot! Link to comment Share on other sites More sharing options...
Recommended Posts