=utf-8 '); Res.write (s); Res.end ();});functionprintcookies (cookies) {Console.log (' ******cookies****** '); for(varPinchcookies) {Console.log (P+ ' = ' +unescape (cookies[p])); } console.log (‘*******************‘);}3. Script requests for cross-domain Services in a Web page of the local Web site.Where scripts are referenced across Domain Services through the script tag.DOCTYPE HTML>HTML> Head> title>Testtitle> Linkrel= "stylesheet"href= "/stylesheets/style.css">Head> B
alig= "Center"H2>H3class= "H3"Align= "Right">This is the title H3 | Apply attribute align= "right"H3>h4class= "H4"Align= "Justify">This is the title H4 | Apply attribute align= "Justify"h4>h5class= "H5">This is the title H5h5>h6class= "H6">This is the title H6h6>The effect appears as follows:Defining paragraphsSame as above it also has a align attribute, and is
GetElementByTagNames (names in the plural number) obtains some tag elements and stores them in an array in their order. This is very useful. For example, in the TOCScript in the previous chapter, you need to obtain all H3 and H4 in the entire article.I very much want to add this function to the node prototype, but it does not work in IE and Safari. So he can only be treated as a common function.UseGetElementByTagNames has two parameters:1. A tag Name
How to correctly use the title elementThe HTML title element types are h1, h2, h3, h4, h5, and h6. Numbers indicate the title structure level. We should take the title as seriously as we learned at school.The title of the highest level must be h1 on the page. It should describe what the page is. Most pages have an h1 title, but complex page files may have more than one h1 tag.The h2 title will mark the next structure level, the next level is h3, and s
: normal normal normal 12px/1 Arial, Helvetica, sans-serif; margin:0; padding:0}a,abbr,acronym,address,applet,article,b,big,blockquote,button,canvas,caption,center,cite,code,dd,del,dfn,div,dl,dt,em,embed,fieldset,font,form,h1,h2,h3,h4,h5,h6,hr,html,nav,i,iframe,img,ins,input,kbd,label,legend,li,menu,object,ol,p,pre,q,s,samp,small,span,section,strike,strong,sub,sup,table,textarea,tbody,td,tfoot,th,thead,tr,tt,u,ul,var{margin:0;padding:0; font-size:100%
CSS is not difficult to learn, but in large projects, it becomes difficult to manage, especially the different people in the CSS writing style slightly different, the team is more difficult to communicate, to summarize some how to achieve efficient and neat CSS code principles:1. Use reset but not global resetThe default properties for different browser elements vary, using reset to reset some of the default properties of the browser element to achieve browser compatibility. It is important to n
Learning content:1. Single-label, double-label structure: Single label PS: label must be closed correctly, tag name, attribute name in lowercase, conform to specification.2.DW shortcut keys:CTRL c copy; Ctrl v copy;Ctrl a select all, ctrl s Save;CTRL z Undo; Ctrl F find replacement;Ctrl d auto copy; Ctrl u preferences;3. Comment Label:1 This is a comment -5. Title tag: H1;h2;h3;h4;h5;h6 effect is bold, font size descending1 H1>This is Heading 1.H1>2
Mobile Development Templates:750 of the manuscript divided by 75: Initialization style: @charset "Utf-8";/* Disables the automatic resizing of safari in iphone */html {-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; /* Resolve the iOS default sliding very card situation */-webkit-overflow-scrolling:touch;} /* Prohibit scaling form */input[type= "Submit"], input[type= "reset", input[type= "button"], input {resize:none; Border:none;} /* Unlink highlighting */body, Div, UL, Li, O
When values are all shaped, sort by the values of the hash:h = {'a' = =1,'b ' ==2,'C ' +5,'d' = 4} H.sort {|a,b| a[1]1]} Output: [["a", 1], ["b", 2], ["D", 4], ["C", 5]] When we need to sort the hash, we cannot use the Sort method as simple as the array, because the data types in the array are the same (integer), the data types in the hash may not be the same, such as the integer type and the string type can not be sorted together, we need to deal with this time, The following (if
convert it to a normal string object//file address corresponds to SRC directoryString Emailtext =velocityengineutils.mergetemplateintostring (Velocityengine,"/VELOCITY/MAIL.VM", model); //work with the same email as aboveMimeMessage msg =Mailsender.createmimemessage (); Mimemessagehelper Helper=NewMimemessagehelper (MSG,true); Helper.setfrom (Mailsender.getusername ()); Helper.setto ("[Email protected]"); Helper.setsubject ("Rich content Mail"); Helper.settext (Emailtext,true); Mailse
Resolve CSS Browser compatibility issues, multi-year map work summary:
* * The default value of the outside margin margin, padding padding under each browser * *
Html,body,a,h1,h2,h3,h4,h5,h6,p,div,ul,li,ol,dl,dt,dd,img,form,input,textarea,select,fieldset {margin:0px; padding:0px}
/* Unified title Common style Text-shadow:gray 0px 0px 5px; Text Shadow font-weight:800 Smooth Bold * *
H1,h2,h3,h4,h5,h6,b,
java generates JPG Picture:
Package other.pic;
Import Com.sun.image.codec.jpeg.JPEGCodec;
Import Com.sun.image.codec.jpeg.JPEGImageEncoder;
Import Java.io.BufferedOutputStream;
Import Java.io.FileOutputStream;
Import Java.io.RandomAccessFile;
Import Java.awt.image.BufferedImage;
Import java.awt.*;
Import Java.util.Random;
/** * Created by the IntelliJ idea.
* User:administrator * date:2005-6-10 * time:11:19:49 * This class can create a JPG picture. * To change this template use File
.
Avoidance floating
Clear:none|left|right|both
Non-inherited
Apply: Block Element
Z-Axis Order
z-index:auto| integer
Non-inherited
Applicable: Positioned elements
The interrelationship between display, position, and float:If display equals none, the client must ignore position and float. In this case, the element does not produce a box. Otherwise, if position equals absolute, both display and float are
How to use header elements correctly
The HTML caption element type is h1, H2, H3, H4, H5, and H6, the number represents the structure level of the title, we want to study like in the school so seriously treats the title (hehe, but I did not read how many books, 69 junior Middle School-translator).
The highest level of title must be H1 on the page. It should describe what this page is doing. Most pages have a H1 title, but a complex paging file may h
new window.
Email links
Add an email hyperlink to your message, just follow the example set (UBB code is bold)
Abc@263.net
In the above example, the UBB code automatically generates a link to the e-mail message.
Add imageAdd an image to your message, just press the example to set it in (UBB code is bold).
In the example above, the UBB code automatically makes the image appear in your message.
Other tag
And these tag http://www.alixixi.com/program/a/, u small H1 H2 H3
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.