If you want to do the same, then you need my getelementbytagnames () function.
Copy Code code as follows:
function Createtoc () {
var y = document.createelement (' div ');
y.id = ' Innertoc ';
var a = Y.appendchild (document.createelement (' span '));
A.onclick = Showhidetoc;
a.id = ' Contentheader ';
a.innerhtml = ' Show page contents ';
var z = y.appendchild (document.createelement (' div '));
Z.onclick = Showhidetoc;
var tobetocced = getelementsbytagnames (' H2,h3,
This article we produced a column information content for your reference, the specific content as follows
Google browser to parse the sequence of adjustments that require full load after the execution
$ (window). Load (function () {
$ ('. Text '). EQ (0). css (' Margin-top '), ($ ('. Auto '); eq (0). Height ()-$ ('. Text '). EQ (0). Height ())/2 + ' px ');
Note: For Firefox browsers, you can press Ctrl+shift+m to adjust the size of the moving end.Sub-column title
css| Page | style sheet
This thing, when you need to restore the default value, more useful.
*{margin:0;padding:0 at the beginning, you need to restore the HTML default CSS value when you need to use margins.
I've been looking for this document, and I happened to be here todayon W3See. In addition to inline and block definitions, it is important to pay attention to the default styles (margin and font-size) of labels such as BODY|H1~H6|BLOCKQUOTE|MENU|UL|OL|DD. HTML, address,BlockquoteBody, DD, D
css| Page | style sheet
This thing, when you need to restore the default value, more useful.
*{margin:0;padding:0 at the beginning, you need to restore the HTML default CSS value when you need to use margins.
I've been looking for this document, and I happened to see it on W3 today. In addition to inline and block definitions, it is important to pay attention to the default styles (margin and font-size) of labels such as BODY|H1~H6|BLOCKQUOTE|MENU|UL|OL|DD.
HTML, address,BlockquoteBody, DD, Div,
General website will do click Logo, will return to the homepage, how to do it, we first thought, to the picture plus links on it
What do you do with the big exercises in the first four verses? There is no difficulty, if you feel that there is no relationship between the difficulty, this class, I take you to do this exercise!"First step overall layout and public CSS definition"Let's analyze this page first.The page is mainly divided into 5 large chunks, the top of the logo, navigation bar nav, Ba
domestic, Google is blocked!What about JavaScript? (in general, put the introduction file in front of Here's how to put the difference between head and The head is a common event that requires a user to click or a variety of actions to trigger.Put in the Now let's take a look at the CSS problem:1, I believe that 99% have done 1 projects will understand: RESET.CSS (reset file or COMMON.CSS,BASE.CSS, the name is not the same, the use of the same.) )I will share my own accumulated good papers this
This "Default html css style attribute of the browser" is useful when you need to restore the default value. Apply the wildcard selector * {margin: 0; padding: 0;} at the beginning. When you need to use the margin, You need to restore the default html css value.
I have been searching for this document all the time. I saw it on w3. In addition to the definition of inline and block, the main thing is to pay attention to the body | h1 ~ H6 | blockquote | menu | ul | ol | default style (margin and f
addition, adding the original attributes of a tag, such as class, makes it easier to use the tag assistant.
In addition, the tag assistant can be customized as follows:
(1) create a Class derived from the TagHelper Class
// The class is converted to
(2) Set attributes and basic classes
public string Color { get; set; } public override void Process(TagHelperContext context, TagHelperOutput output) { output.TagName = "div"; output.Attributes.Add("style", "color:" + Color); var text = "H
: Define the video.
The Code is as follows:
19. New Element audio: Specifies the audio.
The Code is as follows:
20. Add an embed element: insert various media in the format of midi, wav, aiff, au, and mp3.
21The Code is as follows:
22. Add an element mark: highlighted or highlighted text. Equivalent to span
23. Add the element progress: indicates the running process and shows the time-consuming functional process in javascript.
The Code is as follows:
24. New Element Time: indicates the date and
DefaultstylesheetforHTML4 This appendix is Ive, not normative.
This style sheet describes the typical formatting of all HTML 4 ([HTML4]) elements based on extensive research into current UA practice. developers are encouraged to use it as a default style sheet in their implementations.
The full presentation of some HTML elements cannot be expressed in CSS 2.1, including replaced elements ("img", "object"), scripting elements ("script", "applet "), form control elements, and frame elements.
Fo
You may not know the default style of the HTML4.0 element. This article will help you sort it out for future convenience. If you are interested, please refer to it and hope to help you.
The Code is as follows:
Html, address,Blockquote,Body, dd, p,Dl, dt, fieldset, form,Frame, frameset,H1, h2, h3, h4,H5, h6, noframes,Ol, p, ul, center,Dir, hr, menu, pre {display: block; unicode-bidi: embed}Li {display: list-item}Head {display: none}Table {display:
This article tries to use a simple example to show you how to use JSP to call Javabean to dynamically generate a bar chart on the webpage. The following code is successfully tested on Windows. The Web application server uses Allaire jrun3.0.Step 1: Create a Java Bean to generate a JPG fileThe source program is as follows:
// Java Bean for generating images// By Cui guanyu// Date: 2001-08-24Import java. Io .*;Import java. util .*;Import com.sun.image.codec.jpeg .*;Import
different browsers are not the same in some places. For example, when we write CSS, we will first set the * {margin:0; padding:0;}, why is this? This is because of a browser compatibility issue. Altogether, all make 0, so that each browser is unified.Here we first put the default style code, our next section is dedicated to the default style, there are many interesting places.1 html, Address,blockquote,body, DD, DIV,DL, DT, fieldset, Form,frame, FRAMESET,H1, H2, H3,
Language
=
"
C #
"
Masterpagefile
=
"
~ /Views/shared/site. Master
"
Inherits
=
"
System. Web. MVC. viewpage
"
%>
Then you can use the types and posts datasets !!!
--
ArticleCategory
--
%>
Div
ID
= "Lcategory"
>
H4
>
Span
> My document category
Span
>
H4
>
Ul
>
Foreach (VAR type in model. types){
%>
Li
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