<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#aa{
width: 300px;
height: 300px;
background: rgba(24, 27, 214, 0.8);
}
</style>
<script src="jquery-3.5.1.js"></script>
</head>
<body>
<div id="aa"></div>
<button id="a" type="button" onclick="width()">变宽</button>
<button id="b" type="button" onclick="height()">变高</button>
<button id="c" type="button" onclick="bg()">变色</button>
<button id="d" type="button" onclick="wbg()">变小有变红</button>
<script>
let oA=document.getElementById("aa");
function width(){
oA.style.width="500px";
}
function height(){
oA.style.height="500px";
}
function bg(){
oA.style.backgroundColor="rgba(62, 214, 24, 0.8)";
}
let oA2=$("#aa");
function wbg(){
oA2.css({"background":"rgba(107, 7, 7, 0.8)","width":"200px","height":"200px"})
}
</script>
</body>
</html>
```css
```css
在这里插入代码片