change button

<! DOCTYPE HTML>
<HTML>
<head>
<Meta charset = "UTF-. 8">
<title> change button click </ title>
<style type = "text / CSS">
div {
text-Shadow: 2px 2px FF0000 #;
font-Family: 'blackbody';
font-size: 30px;
text-align = left: Center;
}
Button {

}
.change {

font-size: 20px;
}
.change: hover {
border: 3px Solid SeaGreen;
}
< / style>
</ head>
<body>
<div the above mentioned id = "null">
<the p-> where would someone like lonely, but do not like disappointment nothing! </ P>
</ div>
<Button class = "Change" the onclick = "myFunction ()">


var Color = document.getElementById("null");
Color.style.border = "4px double red";

}
</script>
</body>
</html>

Guess you like

Origin www.cnblogs.com/shu-xi/p/11695702.html