Previously, we introduced the selector querySelector (1) In HTML5 ). Today, we will continue to share with you the newly added selector querySelectorAll (2) in HTML5 ).
The parameters received by the querySelectorAll () method are also CSS delimiters, but all matching elements are returned, while the querySelector () method returns the First Matching Element.
The querySelectorAll () method returns a NodeList instance. NodeList is an instance with all
attribute, the former belongs to HTML, the latter belongs to CSS. (This is the separation of the structure from the performance phase.)
Well structured HTML pages have almost no label for performance attributes. The code is very clean and concise. For example, the original code
Practice it yourself. Structured
The a
, gradually go deep, so, especially the knowledge of the reserve stage, must be fast over the foundation, and then continue to accumulate experience in the project practice.Below is a brief list of the knowledge modules that need to be mastered at the basic stage, in order to have a holistic grasp:
File encoding
Path
Label
Property
Selectors, pseudo-class selectors
CSS Styles
Box model
Margin collapse
Block ele
all text and side two classes of properties will be added to the P element. If the properties in their two classes conflict, then the setting works, that is, the properties of the class that are placed in the CSS file later.
Add: For an ID, you can't write
3. CSS Border Defaults
You can usually set the boundaries of the color, width and style, such as:
BORDER:3PX Solid #000
This shows the bounda
After a few days of html-based learning, It is now possible to build a simple static web Page.The study of these days is more regular and follow the progressive, first of all, the initial understanding of html, and then the study and use of the various tags, the label is not difficult, but the short time can not fully absorb the entire department, after all, memory is limited, learning to the back will also
Familiar with html css layout models and htmlcss layout models
The most difficult part of HTML is coming! I have repeated this many times, including writing a blog now. It is also a kind of review for myself. I am afraid I can't understand it very well, because I still cannot express what I have learned in an accurate and easy-to-understand way, so I can take a n
and XHTMLBeginning CSS Web Development from getting started to masteringCSS Web Development from getting started to masteringHtml,xhtml,and css-visual Quickstart Guide Sixth EditionHTML (English version)TRANSCENDING.CSS (English version)Perfect HTML design-use CSS without table (second edition)
CSS files, and the other was not updated and saved.
Ah, I really don't know how to say my carelessness...
3. I personally think it is really important to select a selector in CSS. I hope I can gradually gain experience through multiple exercises. Sometimes I don't understand why I think it is clear that the choice is correct, and it does not work.
In addition, y
1. First look at the effect you want to achievethe actualYou can see that my implementation process is to use a parent div to position the horizontal vertical center, and then the parent div to locate the two cross Div.Look at the implementation code:html>head> title>title> style> Body{margin:0; padding:0 }/ * Position Parent div Horizontal Vertical Center * / . Body_main{ width:px ; height: px ; background-color: #3091E5 ; margin:-0 px 0 - px; top:% ;Left :% ; position
BAT and major Internet companies 2014 front-end written interview questions: Html/cssHTML article:1. Which of the Web pages do you test? What are the cores of these browsers?
Ie:trident kernel
Firefox:gecko kernel
Safari:webkit kernel
Opera: formerly the Presto kernel, opera has now switched to Google Chrome's blink kernel
Chrome:blink (co-developed with Opera Software based on Webkit,google)
2. Every
body are centered in the Ie5/win (other browsers simply center the text), the second text-align:left is the left of the text in the #warp.
15. Importing (import) and hiding CSS
Since older browsers do not support CSS, a common practice is to use the @import technique to hide the CSS. For example:
@import url ("M
Webpage Design and Development-HTML, CSS, and JavaScript
Basic Information
Author:Wang Jintao Meng qingchang
Series Name:Plan teaching materials for schools of higher learning in the 21st century. Computer Application
Press: Tsinghua University Press
ISBN:9787302265498
Mounting time:
Published on: February 1, April 2012
Page number: 351
Pricing: ¥36.00
Member price: ¥27.00 (off)
Campus discount
, wow ka ka7. Each line of CSS why to write this, write the meaning of what, what role, if not, what will be, CSS how to optimize the best, the weight problem almost forget, there are many ~Write a bit messy, take time to improve slowly, learn html+css, you can go to the novice tutorial to see, knocking on the inside o
A lot of front-end big Guy said, to be good front-end words HTML and CSS Foundation must be compacted. So, to what level to call the foundation tamping it?1, get the designer to give the diagram, whether it is a PC or the mobile side of the diagram, after a look at the mind has a very clear structure and page writing process may appear compatibility issues.2, the page in writing can be quickly written to fi
Box model of HTML and CSS, cssbox
As the last article in the attribute article, this article describes the key-Box model of HTML and CSS ). the key to understanding the Box model is the margin and padding attributes. Correct understanding of these two attributes is also the key to learning to use
1. Introduction to CSSCascading style sheets (cascading style Sheet), called CSS, is a kind of computer language used to express HTML or XML file styles, and a style design language that can truly separate Web page performance from content. The ability to control the placement of objects in Web pages in a pixel-level format is currently the most widely used language based on text display.Beef Brisket Publis
If you are a prospective Web Front-end worker, you will certainly benefit from this book, because it is specially designed for you.The Content System in the authoritative guide to HTML 5 and CSS 3 provides a detailed explanation of all the new features and features of HTML 5 and CSS 3, all knowledge points keep up with
Hyperlink a tag everyone should be very familiar with this article is mainly about the basis of a tag CSS style settings, the introduction of the four kinds of color changes, I hope we have a lot of practice, let's read this article together
First we need to know the color setting of the HTML a tag:
We all know what the default color is in
To learn HTML and CSS, you can now say goodbye to a paragraph. To sum up, I have learned this two weeks.
First of all, I did spend some time learning these basic things. During this time, I have mastered the basic knowledge. Some simple page la s can be done. At present, there are few exercises,
I believe that I will solve the problem later. (If you encounter a
In this article, we'll show you a new way to quickly develop HTML and CSS using the syntax of the imitation CSS selector. It is developed by Sergey Chikuyonok.
How much time do you spend writing HTML code (including all tags, attributes, references, braces, etc.)? If your editor has code hints, it will be easier when
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.