感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<body>
<html>
<p id="html">
欢迎来到HTML的世界!
</p>
<button onclick = "F()">
改变
</button>
<button onclick = "E()">
重置
</html>
</body>
xxxxxxxxxx
function F(){
document.getElementById("html").innerHTML="这就是它的魅力!";
}
function E(){
document.getElementById("html").innerHTML="欢迎来到HTML的世界!";
body{
background-color: #EEEED1;
p{
color:green;
font-family:"楷体"
p:hover{
color:blue
button{
background-color: green;
padding:15px 12px
button:hover{
background-color:#4CAF50 ;