Is it possible to do this for a long time?

Asked 2 years ago, Updated 2 years ago, 38 views

Hi, everyone. Is it possible to do this for a long time? I wonder if it is possible to adjust the number of variables that are sprayed according to the browser size when sprinkling variables on the template.

Images <width x length 100px> variables are sprinkled so that the screen is always 100% full
Is it possible to increase or decrease the number of images sprayed instead of changing the resolution and size of the image?

Is it possible?

django python

2022-09-21 17:24

2 Answers

What do you mean by 100px by 100px is sprinkled with variables?

If you want to fill the background with a repetition of a specific image according to the screen size, CSS's background You can use properties.

body {
    background-image: url("paper.gif");
    background-repeat: repeat;
}

Go to the link below and change repeat-y to repeat and press the run button. http://www.w3schools.com/cssref/tryit.asp?filename=trycss_background-repeaty


2022-09-21 17:24

It's possible.

However, I think this is something that needs to be solved at the front end rather than Django. Depending on the size of the browser, it is desirable to request a specific number, or to resolve it at the front and end so that only a specific number is visible.


2022-09-21 17:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.