![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
京魂
不忘初心 继续前行
展开
-
jQuery选择器总结
1、元素选择器:$("标签名") 例:$("p") 选择p元素 2、属性选择器:$([属性]) 例:$("[href]") 选取所有带有 href 属性的元素 3、元素属性选择器:$("标签名[属性 符号 值][属性 符号 值]...") 例: $("input[name='test']") 选择所有的name属性等于'test'的input元素 $("input[name!='test..原创 2018-07-11 16:01:55 · 358 阅读 · 0 评论 -
:nth-child() 选择器出现的坑
代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> .divbase .div0 p:nth-child(1) span { color: red;原创 2019-03-01 16:56:26 · 1799 阅读 · 0 评论