<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#search_list').on('mouseover', function(event) {
this.css({
height: 'auto'
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('#search_list').on('mouseover', function(event) {
this.css({
height: 'auto'
});
});
});
</script>
2017-03-05
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
2017-03-05
<form action="" target="_blank" method="get">
<input type="submit" name="" value="點擊提交">
<input type="button" name="" value="點擊不提交">
<button>點擊提交</button>
</form>
<input type="submit" name="" value="點擊提交">
<input type="button" name="" value="點擊不提交">
<button>點擊提交</button>
</form>
如果點擊搜索框,繼續(xù)顯示搜索結(jié)果的話,要在后面阻止事件冒泡
$("#hint").css("display","block");
//阻止事件冒泡到document
var ev = event || window.event;
if(ev.stopPropagation){
ev.stopPropagation();
}
else if(window.event){
window.event.cancelBubble = true;//兼容IE
}
$("#hint").css("display","block");
//阻止事件冒泡到document
var ev = event || window.event;
if(ev.stopPropagation){
ev.stopPropagation();
}
else if(window.event){
window.event.cancelBubble = true;//兼容IE
}
2017-02-23