如何翻转下面有多个 div 的模态?
<div id="modal">
<div id="box1front" class="window">
<div class="header">
<div class="headerinner">
<div class="modalclose"><a href="#" class="close">X</a></div>
<div class="modalheading">Title</div>
</div>
</div>
<div class="contents">
<div class="other">
<div class="otherinner">
<button>View Back</button>
</div>
</div>
<div class="copy">
<div class="copyinner">
<p>[FRONT]</p>
</div>
</div>
</div>
</div>
<div id="box1back" class="window">
<div class="header">
<div class="headerinner">
<div class="modalclose"><a href="#" class="close">X</a></div>
<div class="modalheading">Title</div>
</div>
</div>
<div class="contents">
<div class="other">
<div class="otherinner">
<button>View Front</button>
</div>
</div>
<div class="copy">
<div class="copyinner">
<p>[BACK]</p>
</div>
</div>
</div>
</div>
</div>
当我单击按钮时,我希望它从box1front翻转到box1back 。
此页面上将有多个模式(显然不是一次全部打开)。按照上述格式,他们每个人都有自己的 ID。
如果有人能够帮助我,我将不胜感激。
干杯,
灰