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

WBOY
Release: 2016-06-24 12:22:01
Original
1358 people have browsed it

回复讨论(解决方案)


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


    
        
            
                
                       
                       ${d.name}
                
            
        
     


这个jquery只能消除最后一条,现在要消除最后两条,麻烦了

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

然后把script放在之前

用 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>
Copy after login

楼上不是这样的,只有一个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>
Copy after login


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

css就可以控制的。

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template