开发者

select li having images

开发者 https://www.devze.com 2023-02-05 06:12 出处:网络
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

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

精彩评论

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