首页 > Web开发 > 详细

JQurry $() css() 用法

时间:2016-07-01 14:46:37      阅读:247      评论:0      收藏:0      [点我收藏+]

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>


<script type="text/javascript" src=‘js/jquery-1.12.1.min.js‘></script>
<style>
*{margin:0;padding:0}
</style>


</head>
<body>
<div id="wrap">
<ul>
<li>1</li>
<li>1</li>
<li>2</li>
<li>2</li>

</ul>
</div>
<p>11</p>

<script>
$(‘#wrap ul li,p‘).css({
color:‘#f00‘,
fontSize:‘20px‘
});
</script>


</body>
</html>

JQurry $() css() 用法

原文:http://www.cnblogs.com/jessi/p/5632997.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!