好的,所以這裏的問題。我試圖讓表格出現後,我已經按下了某個標籤。 這裏是我的HTML代碼:點擊div後移動Javascript表
<div class="bar1" id="bar1">
<div class="tables">
<table id="statistics" class="table table-condensed table-striped"></table>
<table id="DataAnalysis" class="table table-condensed table-striped"></table>
<table id="Inventory" class="table table-condensed table-striped"></table>
<table id="Purchase" class="table table-condensed table-striped"></table>
</div>
這裏是我的CSS:
.tables {
position: relative;
left: -5000px;
top: -5000px;
}
最後這裏是我的javascript代碼:
$('#bar1').click(function() {
$('#statistics').slideUp();
$('#Inventory').animate({
left: "500px"
}, 200);
$('#DataAnalysis').slideUp();
$('#Purchase').slideUp();
});
出於某種原因,我的代碼是不工作。我看不到我的代碼的問題。