2014-03-27 30 views
-2

嗨誰能幫我寫一個複雜的選擇在那裏我發現,不包含在鏈接詞「視頻」所有的HREF選擇CSS屬性選擇器工作不正常

.ico-wrap[href:not([href*="/video/"])] 

需要與HREF幫助:不是部分。謝謝

+4

'.ico-wrap:not([href * =「/ video /」])'? –

回答

2

你有一個太多href s在那裏。

.ico-wrap:not([href*="/video/"]) 

DEMO:http://jsfiddle.net/w3kKM/

這將選擇元素沒有href值,如果你希望只選擇與href元素,那麼你可以做:

.ico-wrap[href]:not([href*="/video/"]) 

DEMO:http://jsfiddle.net/w3kKM/1/