Home >Web Front-end >HTML Tutorial >How to remove the underline of the last two data in td_html/css_WEB-ITnose

How to remove the underline of the last two data in td_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:22:011398browse

回复讨论(解决方案)

bf8013613327e9c91f09b515fd16eab7
$(function(){
   $(".bgxzimage:last").css("border","0px"); 
});
$(function(){
   $(".bgxztitle:last").css("border","0px"); 
});
2cacc6d41bbb37262a98f745aa00fbf0
8a7b6f99394cc03bd4edeba33f305584
    f1210d07cb047f41bf40b49539468122
        93a03371035e6b87e060909901b3ba89
            990e75c863ad36762aaa861568eb0224
                a34de1251f0d9fe1e645927f19a896e8
                       71519304ff5706881de7c45d0d7cfee18a1a54f759b74d244ca6ace001c6fc43b90dd5946f0946207856a8a37f441edf
                       81180709601848e96f69a7750ddf4fe32e1028ba7d518dab34dd971194706836${d.name}5db79b134e9f6b82c0b36e0489ee08edb90dd5946f0946207856a8a37f441edf
                fd273fcf5bcad3dfdad3c41bd81ad3e5
            7d1836c0bf4508ae21dabb4fb293336e
        7d1836c0bf4508ae21dabb4fb293336e
     f16b1740fad44fb09bfe928bcc527e08
16b28748ea4df4d9c2150843fecfba68
这个jquery只能消除最后一条,现在要消除最后两条,麻烦了

$(function(){
   $(".bgxzimage:last").css("border","0px"); 
   $(".bgxztitle:last").css("border","0px"); 
});

然后把script放在36cc49f0c466276486e50c850b7e4956之前

用 CSS 就可实现,何必烦劳 js ?

这种最简单就是在最后的DIV或者LI上重新定义个CLASS

你那条线是用的下边框的css设置吧,你把它改成上边框就可以了吧,我想反正你的第一行的上边框也要用上

是循环读出来的,样式没办法设置吧

<style>table{ border-collapse: collapse; }th, td{ border-top:1px solid #666666; }</style><table><tr><th>姓名</th><th>年龄</th></tr><tr><td>张三</td><td>24</td></tr><tr><td>李四</td><td>25</td></tr><tr><td>王五</td>	<td>23</td></tr></table>

楼上不是这样的,只有一个td,因为从数据库里循环读出来的

你在开玩笑?

            <c:forEach items="${n.datas}" var="d" varStatus="status">                <tr>                       <td class="bgxzimage"><img src="framework/userFiles/2013/6/1371199079789347445055.jpg"></td>                       <td class="bgxztitle"><a target="_blank" href="${filePathURL}${d.pathName}?dow=1">${d.name}</a></td>                </tr>            </c:forEach>


楼上不是这样的,只有一个td,因为从数据库里循环读出来的

css就可以控制的。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn