摘要: html里写:<p id="p1">我是测试炮灰</p>script里写://解决冲突方法一: jQuery.noConflict(); //此时放弃$,只能用jquery这个关键字代表jquery jQuery(function(){ jQuery('#p').hide();//此时隐藏p标签 } 阅读全文
posted @ 2016-12-10 11:23 VictoriaChen 阅读(182) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>获取元素及对应样式</title></head><style> .yellowColor{ background-color: yellow; } .firstLi 阅读全文
posted @ 2016-12-07 13:37 VictoriaChen 阅读(1052) 评论(0) 推荐(0)