This article mainly introduces the use of HTML list tags dl, ul, and ol. It is suitable for beginners. If you are interested, you can learn
The Code is as follows:
列表标签::分层列表 子标签::上层列表项 :下层列表项 ------------ 无序列表标签: 子标签: ------------ 无序列表标签:
Many people ignore the powerful functions of HTML Tag META. A Good META tag design can greatly improve the possibility of your personal website being searched. Are you interested, who should I get to know about META tags? Even if your personal
This article mainly introduces how to change the length of an input text box as the Content Length changes. The implementation principle is very simple. After reading it, you will know the first step:
The Code is as follows:
4?this.value.
Divstylemargin: 0auto cannot center the page because L-Blog does not add a DTD before HTML by default, so IE explained the document in HTML instead of XHTML and wrote a jsp page today.
123xxxHow can this problem be solved? The page cannot be
This article describes how to insert images to html webpages and add map indexes. For more information, see the image formats supported on the WEB:
GIF: saves 256 of the color, supports transparent color, and supports animation effect.JPEG:
The pop-up DIV cannot cover the select statement, so iframe is used. The following is a good example, iframe is used as the pop-up layer to overlay and write cookies across domains. Recently, a project-bucket favorites is available. Simply put, you
In the process of using html, you basically use dreamweaver to generate automatically. The html writing method described below is different from the previous one. For more information, see
The Code is as follows:
This article introduces the issue of iframe node initialization: If the iframe element is not added to the DOM tree, the document in iframe is not initialized. Today, I suddenly want to review how the Rich Text Editor works. Then, let's talk about
The following example shows how to easily implement a background color gradient in html. If you are interested, refer to the following results:
Implementation Code:
The Code is as follows:
Textarea is a special node. Because this node is special, I have different interpretations of it in IE and other browsers. Next I will introduce the precautions for Textarea. Why do I need to mention textarea? Because textarea is a special node.
The upper-level label of the element is div, and attributes such as width and height have been set. However, it cannot take effect when you use margin to adjust the element. Below is a good solution, if you are interested, refer to the following
When the height attribute of Text is defined, the input Text in Text is not vertically centered, but can be controlled through css. Below is a good example, when the height attribute of Text is defined, the Text entered in Text is not vertically
After the div grows, the background color or image increases accordingly. The following is a good example.
The Code is as follows:
Height: auto! Important;Height: 550px;Min-height: 550px;
Add the code at the end of the Div:
Or use
2.
Setting the width attribute for the style marked by span will not produce any effect. The following describes how to set the width attribute of span, if you do not know, you can set the width attribute directly for the style marked by span.
If
The onclick event of the link is executed first, followed by the action under the href attribute. Assume that both href and onclick exist in the link. If you want to disable the action under the href attribute, when onclick had to get a false return
When you move the cursor to the menu button, the div of the sub-menu appears, but it cannot be displayed because it is blocked by the object animation. To solve this problem, we have a good solution, I hope it will be helpful for you to make a menu
After the width of the table is set in the page, the width is still not fixed. If the text is too long, no line break is entered, the following is a good method to effectively solve this problem. After the width of the table is set to width = "600px"
There are many ways to achieve the flickering effect of the background color. This article describes how to use buttons to flash the background color, add the following code to the body area to achieve the flickering effect of the background color.
Sometimes we want to interact with the server on the same page and do not want to switch to another page after submitting the form. What should we do? Here are several forms submission methods
The Code is as follows:
The Code is as follows:
When defining multiple values for the class attribute, it is often found that the defined style is invalid. After testing, when defining multiple class values, be sure to pay attention to it, put your favorite style behind it. Otherwise, multiple
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service