相关疑难解决方法(0)

jQuery:nth-​​child()选择器

嗨,请看下面的HTML.我正在尝试使用jQuery来获取class="box"包含在DIV中的DIV上的每个第3个实例,并且class="entry"没有右边距:

我的HTML代码:

<div class="entry">

    <div class="box">
        SOME HTML....
    </div><!-- end .box -->

    <div class="box">
        SOME HTML....
    </div><!-- end .box -->

    <div class="box">
        SOME HTML....
    </div><!-- end .box I Want to remove right hand margin on this div -->

    <div class="box">
        SOME HTML....
    </div><!-- end .box -->

    <div class="box">
        SOME HTML....
    </div><!-- end .box -->

    <div class="box">
        SOME HTML....
    </div><!-- end .box I Want to remove right hand margin on this div -->

    <div class="box">
        SOME HTML.... …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-selectors

7
推荐指数
2
解决办法
3万
查看次数

标签 统计

jquery ×1

jquery-selectors ×1