开发者

select li having images

I want to apply ifixpng function, for li having images , but i cannot select the below image and apply ifixpng function , how can i select

<li style="list-style-image: url("http://images.abbottnutrition.co开发者_Go百科m/Glucerna.com.br-HCP/IMAGES/bullet.png");"> abc </li>


Isn't better to have the style in css?

And it's easier to select it

css:

.image{
 list-style-image: url("http://images.abbottnutrition.com/Glucerna.com.br-HCP/IMAGES/bullet.png")
}

js: $('li .image').some_func()

Solution:

$('ul li[style*="list-style-image"]').foo() 

and the html should be with normal ':

<li style='list-style-image: url("images.abbottnutrition.com/Glucerna.com.br-HCP/IMAGES/…; abc </li>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜