Heim >Web-Frontend >js-Tutorial >JS控制表格隔行变色_JavaScript

JS控制表格隔行变色_JavaScript

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:28:44879Durchsuche

    
        
    
    
    
        
    
    
        
    
    
        
    
    
        
    
    
    
        
    
不变色
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
不变色


<script><BR><!--<BR>var TbRow = document.getElementById("goaler");<BR>if (TbRow != null)<BR>{<BR> for (var i=0;i<TbRow.rows.length ;i++ )<BR> {<BR> if (TbRow.rows[i].rowIndex%2==1)<BR> {<BR> TbRow.rows[i].style.backgroundColor="";<BR> }<BR> else<BR> {<BR> TbRow.rows[i].style.backgroundColor="#F1F1F1";<BR> }<BR> }<BR>}<BR>//--><BR></script>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn