如题所述
第1个回答 推荐于2017-05-21
用css+js就能实现:
css:
.hide{display:none;}
html
<div class="txt1">内容1</div>
<div class="txt2 hide">内容2</div>
<a id="button"></a>
js:
$('#button').click(function(){
$('.txt1').hide();
$('.txt2').show();
});追答
css:
.hide{display:none;}
html
<div class="txt1">内容1</div>
<div class="txt2 hide">内容2</div>
<a id="button"></a>
js:
$('#button').click(function(){
$('.txt1').hide();
$('.txt2').show();
});追答
标签里少了字,应该是切换
本回答被网友采纳第2个回答 2015-11-14
请把问题描述详细点