How do you put the pictures on the CSS menu in advance?



  • We have a CSS menu with a change of background image for each item. Some of them have rounds, some have pictures of the shooter (there will be a menu).

    Brauser, when a menu falls, often displays a part of these items first without a background image, carving it with some delay. And you put a mouse on the point (and change the background of the paragraph) - and then again, it shows an empty background.

    How do we make sure that when the pages are downloaded, all the paintings that lie in a particular catalogue are pre-empted?



  • As an option, when a menu is formed, all pictures are added to the mass, and then take them anywhere with style.

    .preloadedImage { position: absolute; visibility: hidden; top: 0px; left: 0px; width: 1px; height: 1px; }
    

    Then they will be uploaded together with the document.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2