Home  >  Article  >  Web Front-end  >  html (Css+DIV) usage summary, you will know it after reading it

html (Css+DIV) usage summary, you will know it after reading it

云罗郡主
云罗郡主forward
2018-10-18 17:03:461651browse

The content this article brings to you is about the use of html (Css DIV). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

timg (3).jpg

#1. In HTML, it is often necessary to design content to display the left and right ends, but the distance [between the two ends] can be changed according to the size of the screen.
You can use table, the content is as follows:

<talbe width="100%"><tr><td>左边内容</td><td width="100">右边内容</td></tr></table>

The width of the content on the right can be adjusted to the size of the screen.

2. Text and textarea settings that cannot be input: If set to disabled="true", the value cannot be obtained when submitting the form.
You can set readonly="readonly"

3. Solve the problem of textarea centering.

When I accidentally used a textarea, I found that the content inside was displayed in the center. I couldn't believe it. It turned out to be a problem with the writing. If it was written like this
4750256ae76b6b9d804861d8f69e79d3

40587128eee8df8f03d0b607fe983014 , It turns out that the html is compiled into 4750256ae76b6b9d804861d8f69e79d30c6dc11e160d3b678d68754cc175188a      so that it will be displayed in the center 40587128eee8df8f03d0b607fe983014

4. Firefox/Google Browse Device p adaptive height. Add to the style: height:auto;overflow:hidden;

5. Use of window.open

1>. window.open(url,'Fund plan item overspending reminder' ,'width=' (window.screen.availWidth-10) ',height=' (window.screen.availHeight-30) ',top=0,left=0,resizable=yes,status=yes,menubar=no, scrollbars=yes');

2>.window.open command to pop up a new window;

'page.html' file name of the pop-up window;

'newwindow' The name of the pop-up window (not the file name), optional, can be replaced by empty '';

height=100 Window height;

width=400 Window width;

top=0 The pixel value of the window from the top of the screen;

left=0 The pixel value of the window from the left side of the screen;

toolbar=no Whether to display the toolbar, yes means display ;

menubar, scrollbars represent the menu bar and scroll bar.

resizable=no Whether to allow changing the window size, yes is allowed;

location=no Whether to display the address bar, yes is allowed;

status=no Whether to display the status bar information (usually the file has been opened), yes is allowed;

The above is the complete introduction to the use of html (Css DIV), if you want to know more aboutHTML video tutorial, please pay attention to the PHP Chinese website.


The above is the detailed content of html (Css+DIV) usage summary, you will know it after reading it. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete