body {
textalign: center;
fontfamily: Arial, sansserif;
}
h1 {
color: 333;
fontsize: 24px;
}
h2 {
color: 555;
fontsize: 20px;
}
img {
width: 200px;
height: 200px;
borderradius: 50%;
margin: 10px;
}
button {
padding: 10px 20px;
fontsize: 16px;
backgroundcolor: 007bff;
color: fff;
border: none;
cursor: pointer;
}
button:hover {
backgroundcolor: 0056b3;
}
明星换脸小游戏
function swapFaces() {
var face1 = document.getElementById('face1');
var face2 = document.getElementById('face2');
var tempSrc = face1.src;
face1.src = face2.src;
face2.src = tempSrc;
}