最新回答 / qq_只如初见_9
<!DOCTYPE html><html><head> <title>bing search</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <style type="text/css"> body{background-color: #333;} .bg-div{ background-image: url(images/river.jp...
2017-03-10
<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>
最赞回答 / 阿辉1276
<script type="text/javascript" src="js/jquery-3.1.1.js"></script><script type="text/javascript" src="js/ds.js"></script>应该把jQuery库放在你的js文件之前。
2017-02-23
如果点击搜索框,继续显示搜索结果的话,要在后面阻止事件冒泡
$("#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
@小沐沐_刚刚好,.css() 只能改变行内样式,所以display: none,要写到行内。
我把display: none 写在css里,用.css("display","block");也是可以的
我把display: none 写在css里,用.css("display","block");也是可以的
2017-02-23