Home > front end >  I this Google browser is how to return a responsibility
I this Google browser is how to return a responsibility

Time:09-30

Figure it is is code, figure 2 is Microsoft edge browser, figure 3 is a Google browser, use the width of the offsetwidth and clientwidth access elements li, displays all right on the edge, the Google sometimes normal sometimes is not normal, what is this incurable diseases

CodePudding user response:

Has been solved, detailed look at "javascript senior program design" in the first ten pages, <script> tag attributes defer

CodePudding user response:

Your container is used up, when access to the container size may be the inside of the pictures haven't loaded, get less than the real size of images,
Can be explicitly set the size of the image in code or container size, also can be in the window. The onl oad event scripts to defer attribute (equivalent),
  • Related