1). Get the attributes of the element
$(function() {
Var strAlt = $ ("img"). attr ("src"); // attribute value 1
StrAlt + = "" + $ ("img"). attr ("title"); // attribute value 2
$("#divAlt").html(strAlt);
})
2). Set the attributes
CSS Common style propertiesSort out some of the basic styling properties that you've just learned about CSS, and also pay attention to CSS when you use it.The weight of the selector (id-#=100, class-.=10 directly specifies the label =1).font, color,
Previous Paragraph Basics:Here are three things we need to know:HTML Hypertext Markup Language (page structure)CSS Cascading Style sheets (page styles) can set static pages through HTML+CSSJS JavaScript (page behavior)Common centralized software
(a) Commonly used font properties: Font-weight: Attribute value 100-900 400 equals normal 700 equals bold, the larger the value, the thickerFont-size: Font size, unit can be PX or%Font-family: Font Family such as: Microsoft Ya BlackFont-style:
have been using find beforeNow use parents.var w = $ ("div");W = $ ("div"). Parents ('. class '); Find the DOM node we need in parentsvar f = ' span ';var pfindsize = W.find (f). Size ();if (pfindsize!== 0) {Console.log (' find ');}jquery API
CSS Common Text properties1, font, size class:①font-weight: Font weight bold-bold, normal-Normal, lighter-fine body, can also use 100-900 value, 400 means normal,700 means B②font-style: Font style. italic-tilt, normal-normal③font-size: Font size.
All CSS code in the page needs to be written to the tag.The Type property of the style label should select Text/css, but the type attribute can be omitted.1. CSS Common SelectorThe CSS modifies all the labels on the page and must be selected with
Article reference from: http://www.runoob.com/w3cnote/android-tutorial-textview.html2.4 Using the Autolink property to identify link typesWhen the text appears in the Url,e-mail, phone number, map, we can set the Autolink property, when we click on
CSS Common selector1, the page, all the CSS code, need to write to the tag. The Type property of the style label should be selected Text/css2. CSS annotationsThe CSS modifies all the labels on the page and must be selected with the help of a
Make your own navigation bar.
HTML Header elements:
defines the default link address for page link labels
style files that define HTML documents
defines a relationship between a document and an external resource
1, open or edit CSS, with UltraEdit2. Content (contents) 3, the site design, the first line of paragraph will sometimes be set to italic, habits4, caption? --Title5. Clear attribute?6, the paragraph and other elements of the conflict settings,
JavaScript implementation Baidu Search pageHtmlDOCTYPE HTML>HTML> Head> MetaCharSet= "UTF-8"> title>Baidu a bit, you will knowtitle> introduction of Baidu icon Small icons - Linkrel= "shortcut icon"href=
In the second section we are almost all the CSS selector, then the following section we will talk about the color of CSS and some of the text, although I am not sensitive to color, but the colors are more interesting.The color *********** in CSS1.
1. Element Selector
2. Class Selector
3. ID Selector
4. Attribute Selector
5. Derivation Selector
1. Element SelectorThe most common CSS selector is the element selector, which in an HTML document usually refers to an HTML
Article Introduction: Point Separation (SoC). He has let us accept expansion, scrap, redundancy, caching or even more. Now, I'm convinced that the only way to do this is to stay away from this principle to improve our author style sheet.
The JSP tutorial saves the image to the Oracle database tutorial and reads it directly to the JSP pageCombined image data, and on the calling page display a combination of graphic images (note: The servlet only implements JPG image file processing,
css| Tutorial | style sheet
Seven CSS1 Property
3. 1 Font Properties
Type, font style, font size, font effect, and so on. Common properties are:
①font-family: Font, cursive, fantasy, comic Sans Ms.
②font-size: Font physical size or relative size,
css| style Sheet
Style sheet (css:cascading style Sheets) learning [top]
Seven CSS1 Property
3 . 1 Font properties
type, font style, font size, font effect, and so on. Common properties are:
①font-family: Font, cursive, fantasy,
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.