html
<!DOCTYPE html><html><head><meta charset="utf-8" /><title>jquery</title><script type="text/javascript" src="js/jquery-3.0.0.min.js"></script><script type="text/javascript" src="js/try.js" ></script></head><body><div></div></body></html>
js
$(document).ready(function(){ ??$("div").css({ ???width:"100px", ???height:"100px", ???backgroundColor:"blue" ??}); ?????});
效果:
jQuery CSS方法
原文地址:http://www.cnblogs.com/guangzhou11/p/7570250.html