.audit .you button{
box-sizing: border-box;
width:20%;
height:40px;
margin-left:5%;
float:left;
border-radius: 8px;
background-color: azure;
}
.audit .zuo button{
width:20%;
height:40px;
border-radius: 8px;
background-color: azure;
}
<div class="you"><button type="button" >同意</button></div>
<div class="zuo"><button type="button2" >不同意</button></div>
3 个回复
严生 (作者)
<script>
function changeValue(){
one.value="nihao";
one.style.background="green";
}
function changeCss(){
var two =document.getElementById("two");
two.style.background="green";
}
</script>
<body>
严生 (作者)
已经解决!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>测试</title>
<link rel="stylesheet" type="text/css" href="css/xiao.css"/>
</head>
<style>
body{margin:0px;padding:0px;}
two,#one{width:100px;height:100px;background:red;position:absolute;top:20px;left:100px;}
one{top:20px;left:200px;}
</style>
<script>
function changeValue(){
one.value="nihao";
one.style.background="green";
}
function changeCss(){
var two =document.getElementById("two");
two.style.background="green";
}
</script>
<body>
</html>
严生 (作者)
<body>
</html>