martinsdudeks Posted February 15, 2011 Report Share Posted February 15, 2011 sveiki mani nomac viena problema esmu uzkodejis lapu index.php lapa bet taagad stradaju pie portfolio lapas,bet tur sakas viena nepatikama problema,portfolio lapa atrodas jauna mape portfolio lapas links bet portfolio lapa nenem preti galveno /root/ stylesheetu,varbut kads var palidzet? sis css ir portfolio lapai! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>gitamedne.lv // portfolio</title> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> <script src="js/mootools.js" type="text/javascript"></script> <script src="js/mediaboxAdv-1.3.4b.js" type="text/javascript"></script> </head> Quote Link to comment Share on other sites More sharing options...
marcis Posted February 15, 2011 Report Share Posted February 15, 2011 Ceļi pareizi jānorāda.. Tavā gadījumā css un js tiek meklēti iekš portfolio mapes -> /portfolio/css/fails.css Par šo problēmu arī te ir bijušas vairākas diskusijas. Ātrākais risinājums tavā gadījumā: /css/fails.css (leading slash) Quote Link to comment Share on other sites More sharing options...
martinsdudeks Posted February 15, 2011 Author Report Share Posted February 15, 2011 ja sis css fails ir prieks lightbox efekta , /portfolio/css/portfolio.css un tiesi tapat ari /js attiecigais fails, bet to css failu pasai lapas uzbuvei kas atrodas galvenaja roota nespej nemt preti! cik saprotu tad tu man iesaki visus css/style.css un css/portfolio.css ielikt galvenaja roota ? :) Quote Link to comment Share on other sites More sharing options...
foxsk8 Posted February 15, 2011 Report Share Posted February 15, 2011 Nu es parasti izmantoju base tagu, norādu general root, tālāk jau viss notiek kā ./css/main.css ./js/header.js, bet nu kā jau tev teica, problēma tev ir iekš linkiem. Vai nu ja tev vajag ātri izlīdzēties un negribi domāt dari šādi: <link rel="stylesheet" type="text/css" href="http://tavalapa.lv/css/main.css" /> Respektīvi, liec iekšā uzreiz visu adresi. Quote Link to comment Share on other sites More sharing options...
marcis Posted February 15, 2011 Report Share Posted February 15, 2011 Es tev iesaku pielikt priekšā slashu un viss. Quote Link to comment Share on other sites More sharing options...
martinsdudeks Posted February 15, 2011 Author Report Share Posted February 15, 2011 liels paldies,problema tika atrisinata! 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.