JQ中的 .css()有三种使用方法:$('#p').css('width'); 取得ID为p的样式属性的width值;等同 return width $('#p').css('width','100px'); 设置ID为p的样式属性 width : 100px;(单个设置) $('#p').css({'width':'100px','height':'100px' }); 设置ID为p的样式属性 width : 100px;height: 100px;(多个设置)
查看更多关于JQ系列:css操作_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did107048