jQuery实现显示/消失/渐显/渐隐功能 1. 在Html的body部分定义两个input及一个div <body> <input type = "button" id = shows value = "显示" onclick = "shows()"/> <input type = "button" id = hides value = "消失" onclick = "hides()"/> <div id="divs"></div> </body> 2.在head中加入css样式: <style type = "text/css">