用法descendant selector
descendant selector
說明:選擇作為給定祖先的後代的所有元素。
-
添加的版本:1.0
jQuery( "ancestor descendant" )
ancestor: 任何有效的選擇器。
descendant: 用於過濾後代元素的選擇器。
元素的後代可以是該元素的子、孫、曾孫等。
例子:
使用藍色虛線邊框標記作為表單後代的所有輸入。為作為表單後代的字段集的後代的輸入提供黃色背景。
|
演示:
相關用法
- JQuery UI Datepicker prevText用法及代碼示例
- JQuery UI Draggable snapMode用法及代碼示例
- JQuery UI Dialog minWidth用法及代碼示例
- JQuery UI Datepicker show用法及代碼示例
- JQuery UI Datepicker appendText用法及代碼示例
- JQuery UI Dialog autoOpen用法及代碼示例
- JQuery UI Datepicker calculateWeek用法及代碼示例
- JQuery UI Dialog close用法及代碼示例
- JQuery UI Datepicker getDate用法及代碼示例
- JQuery UI Draggable snap用法及代碼示例
- JQuery UI Droppable tolerance用法及代碼示例
- JQuery UI Droppable scope用法及代碼示例
- JQuery UI Draggable start( event, ui )用法及代碼示例
- JQuery UI Dialog _allowInteraction用法及代碼示例
- JQuery UI Draggable cursorAt用法及代碼示例
- JQuery UI Datepicker defaultDate用法及代碼示例
- JQuery UI Draggable containment用法及代碼示例
- JQuery UI Dialog isOpen用法及代碼示例
- JQuery Mobile Dialog defaults用法及代碼示例
- JQuery UI Datepicker nextText用法及代碼示例
- JQuery UI Draggable snapTolerance用法及代碼示例
- JQuery UI Dialog resize( event, ui )用法及代碼示例
- JQuery UI Dialog open( event, ui )用法及代碼示例
- JQuery UI Datepicker closeText用法及代碼示例
- JQuery UI Droppable classes用法及代碼示例
注:本文由純淨天空篩選整理自jquery.com大神的英文原創作品 Descendant Selector (“ancestor descendant”)。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。