janiskkk Posted October 14, 2016 Report Share Posted October 14, 2016 Netieku galā ar vienu lietu. Gribu panākt lai ir www lapele ar vienu lielu dinamisku, pa visu ekrānu ar dažādām izšķirtspējām redzamu attēlu un lai viss browsera ekrāns būtu links piemēram uz www.delfi.lv Mans kods: <!DOCTYPE html><html><head><title></title> <style>html { background: url(bg.jpg) no-repeat center fixed; background-size: cover;} </style> </head><body></body></html> Saprotu ka tikai ar CSS to panākt nevarēšu. jāliek links. Bet kā to izdarīt saglabājot dinamisku attēlu un lai neparādās liekas spraugas augšā un apakšā? Quote Link to comment Share on other sites More sharing options...
yozhis Posted October 14, 2016 Report Share Posted October 14, 2016 https://jsfiddle.net/2pb9rvhb/ Quote Link to comment Share on other sites More sharing options...
janiskkk Posted October 14, 2016 Author Report Share Posted October 14, 2016 Paldies! Viss sanāca. Finālā drusku savādāk: viens index.html fails: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head> <title>web</title><style>a{ background: url(bg.jpg) no-repeat center fixed; background-size: cover; position:absolute;top:0;left:0;right:0;bottom:0;}</style></head><body><a href="https://www.facebook.com"></a> </body></html> 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.