<div class="navigation">
<a class="prev" href="index.php?month=__prev_month__" onclick="$('#calendar').load('index.php?month=__prev_month__&_r=' + Math.random()); return false;"></a>
<!-- <div class="title" >__cal_caption__</div> -->
<a class="next" href="index.php?month=__next_month__" onclick="$('#calendar').load('index.php?month=__next_month__&_r=' + Math.random()); return false;"></a>
</div>
是我给出的代码。需要在以下按钮中应用这些代码。
<div class="cal-head-right">
<button class="prev">prev</button>
<button class="head-day">Today</button>
<button class="next">next</button>
</div>
答案 0 :(得分:0)
包裹超链接中的按钮。
<div class="cal-head-right">
<a class="prev" href="index.php?month=__prev_month__" onclick="$('#calendar').load('index.php?month=__prev_month__&_r=' + Math.random()); return false;">
<button class="prev">prev</button>
</a>
<button class="head-day">Today</button>
<a class="next" href="index.php?month=__next_month__" onclick="$('#calendar').load('index.php?month=__next_month__&_r=' + Math.random()); return false;">
<button class="next">next</button>
</a>
</div>