如何获取背景颜色为红色的控件列表..? [英] How to get the list of controls which s background-color is red ..?

查看:155
本文介绍了如何获取背景颜色为红色的控件列表..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过它的背景颜色来获取元素..

$('tr [background-color = red]')

i want to get element by its background color like this..
$('tr [background-color = red] ').

推荐答案

('tr [background-color = red]')。
('tr [background-color = red] ').


Hi Kiran



- 如果你使用背景色作为自定义属性,那么你可以选择像波涛一样。

Hi Kiran

-- If you are using background-color as an custom "attribute" then you can select like billow.


(tr [background-color ='red'])
("tr[background-color='red']")



- 如果您正在使用css或样式元素,则需要使用css选择器。



谢谢

.
-- If you are using css or style element on that you need to use css selector.

Thanks


这篇关于如何获取背景颜色为红色的控件列表..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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