表行背景颜色使用JavaScript [英] table row background color using javascript

查看:82
本文介绍了表行背景颜色使用JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <   TABLE     border   =  1 >  
< TR >
< TD > 3 < / TD >
< TD > 4 < / TD >
< TD <跨度class =code-keyword>> 5 < / TD >
< / TR < span class =code-keyword>>
< TR >
< TD > 2 < / TD >
< TD > 4 < / TD >
< TD > 5 <跨度类= 代码关键字 >< <跨度类= 代码leadattribute > / TD <跨度类= 代码关键字>>
< / TR >
<跨度类= 代码关键字 >< <跨度类= 代码leadattribute > TR <跨度类= code-keyword>>

< TD > 2 < / TD >
< TD > 3 < / TD >
< TD > 3 <跨度类= 代码关键字>< <跨度类= 代码leadattribute> / TD <跨度类= 代码关键字>>
< / TR > ;
< / TABLE >





i需要行的最大值然后行颜色为红色

解决方案
http://stackoverflow.com/questions/11517150/how-to-change-background-color-of-cell-in-table-using-java-script [ ^ ]









http://stackoverflow.com/questions/13450703/how- to-set-the-tables-row-background-color-in-ie [ ^ ]



问候......:)

<TABLE border="1">
 <TR>
	<TD>3</TD>
	<TD>4</TD>
	<TD>5</TD>
 </TR>
  <TR>
	<TD>2</TD>
	<TD>4</TD>
	<TD>5</TD>
 </TR>
   <TR>
	<TD>2</TD>
	<TD>3</TD>
	<TD>3</TD>
 </TR>
 </TABLE>



i need that what ever greatest value of rows then row color is in red color

解决方案

http://stackoverflow.com/questions/11517150/how-to-change-background-color-of-cell-in-table-using-java-script[^]

or


http://stackoverflow.com/questions/13450703/how-to-set-the-tables-row-background-color-in-ie[^]

regards...:)


这篇关于表行背景颜色使用JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆