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

云罗郡主
Release: 2018-10-18 17:12:15
forward
1700 people have browsed it

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>
Copy after login

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
, It turns out that the html is compiled into

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!

Related labels:
use
source:csdn.net
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