对一行<SPAN>和</SPAN>隐藏后后面的SPAN行怎么跟进来
用JQuery,对一行<SPAN>和</SPAN>控件进行隐藏后,后面的SPAN行怎么跟进来和上一个位置的控件位置重合,
调用显示后又能恢复各自的位置。
[解决办法]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script><script type="text/javascript">$(document).ready( function() { $("#btn").click( function() { $("#aaa").toggle(); });});</script></head><body><div> <span id="aaa">AAA</span><span>BBB</span></div><button id="btn">显示/隐藏</button></body></html>