熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java核心技術 >> 正文

基於jquery顯示隱藏按鈕實現代碼

2022-06-13   來源: Java核心技術 

顯示隱藏在WEB開發中會經常碰到的現在我們提供一款由jq實現的內容顯示與隱藏的代碼

<!DOCTYPE html PUBLIC "//WC//DTD XHTML Transitional//EN" "/DTD/xhtmltransitionaldtd">
<html xmlns="">
<head runat="server">
<title></title>
<script type="text/網頁特效" src="/Javascript/jqueryjs"></script>
<style type="text/css教程">
#choice_list_district{ height:px;}
#tab td{cursor:pointer;}
</style>
<script type="text/javascript">
$(function () {
//綁定事件處理
$("#choice_list_district a")click(function (e) {
if ($("#divObj")css("display") == "none") {
estopPropagation();
//設置});
});
</script>
</head>
<body>
<form id="form" runat="server">
<div>
<div id="choice_list_district">
<a href="#">出來層</a>
</div><div id="divObj" style="position: absolute; width:px; height:px; background:blue; border:px solid block; display:none; zindex:;">
<table id="tab">
<tr>
<td>aaa</td>
</tr>
<tr>
<td>bbb</td>
</tr>
</table>
</div>
<div style="position:absolute; top:px; left:px;">
<input type="text" id="aaa" />
</div>
</div>
</form>
</body>
</html>


From:http://tw.wingwit.com/Article/program/Java/hx/201405/30803.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.