否定選擇器
:not是否定選擇器,它可以過(guò)濾掉不想被匹配的元素,程式碼實(shí)例如下: ?
<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://ipnx.cn/" /> <title>php中文網(wǎng)</title> <style type="text/css"> ul li{} input:not(:disabled){ color:green; } </style> </head> <body> <ul> <li><input type="text" value="php中文網(wǎng)"/></li> <li><input type="text" disabled value="php中文網(wǎng)"/></li> </ul> </body> </html>