Tuesday, October 22, 2013

Hiero by aThemes


Is a string Selector allows you to specify the exact element html document. Call the function $ (<selector>) to jQuery returns a jQuery object for you. This object contains the functions provided by jQuery and DOM node arrays found by selector. There are two common faceboock types of selector: Mode Search by id of the element: Use the # placed before the name id. For example, take the element <div id = "wrapper">. . . </ Div> I write: $ ("# wrapper") Find the element by class: Use the mark. placed before the class name. For example, take the element <p>. . . </ P> we write $ (". Content") Find the element by tag: tag names. For example retrieves all the <h2>. . . </ H2> we write $ ("h2")
Characteristics when taken in class or tag is going to take a lot of the same node html tag name or class, when taken with id 1 node we just get by on a html document, only assign unique id for an element. Therefore, the class should be used to tag or batch processing element with the same action. For example, faceboock change the text color of the article title (h2 tag) when mouse hover, we use $ ("h2"), so will not need to rewrite as many times as the user id. Complex Type
Search by style syntax synthesis of form. A web page is actually running, the element will be nested, with large numbers. To increase the accuracy and reduce the search results coincide, we find complex selectors together. For example:
Find the div tag of the form <div class = "title">. . . </ Div>, you write: $ ("div.title"). faceboock Note the string "div.title" faceboock no space in between, which means "find all the div tag which itself is a title class". If there are gaps, see example below.
</ Div>
I write: $ (". Article span.content"). With white space in between. "Article" and "span.content", this selector can be understood as: "find all span tags with the class content, and it must be contained in an html node with the class. Article" . Spacing between words in the bird selector is parent-child faceboock relationship, read from left to right is the parent node to node. Improving the accuracy of the attribute selector Using special faceboock html tag
Sometimes we just need to find exactly which only one node in a lot of the same node, we also need to provide additional information to distinguish specific. jQuery faceboock support to the deepest on select properties. Additional syntax "[name> attirbute> = <gia tri>]" on the selector. For example, to find "article" with ID "456" as the example above, we write $ ("div.article [ArticleID = 456]"). <gia tri> with string, faceboock so carefully put in quotes / quotation - [ArticleID = 'post456']. Using jQuery Filter filter, also known as Pseudo identity
Again jQuery learning in the use of pseudo css. marks: filter placed in front of the name, like a function call, a number of input parameters to filter selector is different, some are khong.Vi example: faceboock Take all the div tag does not contain class. title, faceboock we write: $ ("div: not (. title)") Get the first span span all content faceboock contained class, we write: $ ("span.content: first") Take the 4th span span contains all class content, we write: $ ("span.content: eq (3)"). Note, with: eq, filter starts counting from 0.
09/08/2013 Yool
Yii Tutorial # 2 create simple personal blog - Part 2 1 Comment
What is a PHP Framework? Why a framework? August 21, 2013
You do love the web? you like writing? Sign up for an account and funding public right <3 Recent Comments on Yii Huang Title # 2 How to Create a simple personal blog - Part 1 restart on Yii Tutorial # 2 create simple personal blog - Part 1 Jason Le on Get familiar with Yii Javascript Tutorial # 2 create simple personal blog - Part 3 - webFaver on Yii Tutorial # 2 create simple personal faceboock blog - Part 2 Yii Tutorial # 2 create faceboock simple personal blog - Part 3 on Yii Tutorial # 2 create simple personal blog - Part 1 Category Client Side (4) JavaScript (4) jQuery (2) PHP Coding (1) Yii Framework faceboock (6) Basic (1) Tutorial (4 ) Meta Register Log in Entries RSS Comments RSS WordPress.org
Hiero by aThemes

No comments:

Post a Comment