最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Descendant Selector (“ancestor descendant”)

descendant selector

version added: 1.0jQuery('ancestor descendant')

  • ancestor
    任何有效的選擇器。
    descendant
    一個(gè)用來篩選后代元素的選擇器。

描述: 選擇所有給定的祖先的后代元素。

一個(gè)元素的后代可能是該元素的一個(gè)孩子,孫子,曾孫等。

Example:

Finds all input descendants of forms.

<!DOCTYPE html>
<html>
<head>
  <style>

  body { font-size:14px; }
  form { border:2px green solid; padding:2px; margin:0; 
         background:#efe; }
  div { color:red; }
  fieldset { margin:1px; padding:3px; }
  </style>
  <script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
  <form>
    <div>Form is surrounded by the green outline</div>
    <label>Child:</label>
    <input name="name" />

    <fieldset>
      <label>Grandchild:</label>
      <input name="newsletter" />
    </fieldset>

  </form>
  Sibling to form: <input name="none" />
<script>$("form input").css("border", "2px dotted blue");</script>

</body>
</html>

Demo:

jQuery 1.6 API 中文版腳本之家整理、修訂 (2011年6月)
湖北省| 中山市| 蕉岭县| 屯留县| 金乡县| 独山县| 中牟县| 江达县| 孟津县| 库尔勒市| 屏南县| 沙雅县| 长沙市| 晋中市| 牟定县| 泰顺县| 全州县| 安义县| 师宗县| 汤原县| 竹北市| 丹江口市| 乳源| 宣城市| 卢龙县| 内乡县| 吉隆县| 浦江县| 新蔡县| 长武县| 尚义县| 安国市| 大洼县| 双鸭山市| 邻水| 赤峰市| 六安市| 仙游县| 阜宁县| 明光市| 阿尔山市|