Home > front end > Web page background image stretching length how to custom
Web page background image stretching length how to custom
Time:09-17
On mooc learned a course, but the end is quite long, before have a job, request the picture on the web page as the background, and put a piece of writing, and then adjust the text location and style; Tried several ways, background of stretching is really don't know how to set up, want to ask next, how should adjust
My style is written like this: <style> Div {white - space: the pre - wrap; Width: 652 px; Height: 1044 px; Margin: auto; Background: url (" images/bg_homework. PNG "); Padding - top: 150 px; Padding - left: 200 px; Box - sizing: border - box} H1} {the font-family: "Microsoft jas black"; } P {width: 370 px; The line - height: 1.8 em. text-indent: 2em; The font - size: 12 px; } </style> Do it can only achieve this effect, excuse me what reason be?