Home > Web Front-end > HTML Tutorial > Some problems encountered by HTML/_html/css_WEB-ITnose

Some problems encountered by HTML/_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:46:46
Original
1421 people have browsed it

Beginners have a few questions they don’t understand

1. How can I prevent the layout from changing with the browser window size? Originally they were arranged side by side, but after the window was reduced, they were arranged vertically.

2. English display problem


How can the English display not simply break lines because one word is not enough to write? Display like the first picture.


3. Wrote some code using css. . The html needs to write a button to display it. But how to control the position of the button? Using padding and margin has no effect. .


Reply to discussion (solution)

1. Set the fixed width or minimum width of the web page: style="width:800px;" or style=" min-width:800px;"
2. Add style="word-break: break-all;"
3. There are many ways to control the position of button. Margin and padding are just one of the methods. You can also use position. left/top/right/bottom, etc., it depends on how you display it.

Post the code and take a look. . . . . . . . . . .

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template