<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="./js/jquery.min.js"></script>
<style>
div{
width: 200px;
height: 200px;
background-color: pink;
}
</style>
</head>
<body>
<div></div>
<script>
//操作样式值css样式
$(function(){
/* console.log($("div").css("width"));
$("div").css("width","200px"); */
$("div").css({
width:400,
height:300,
backgroundColor:"red"
})
})
</script>
</body>
</html>