CodePudding user response:
<style># mybox {
Width: 100 px;
height: 100px;
border: 1px solid #ccc;
margin-top: 20px;
}
</style>
<script>
The function changeborder () {
Var id=document. GetElementById (' mybox ');
Id. Style. Border='1 px solid is red;
}
</script>