没有效果。
editplus提示说:$(“#head-photo”)里的#有问题。
问题出在哪?如何解决?谢谢
<head>
<script src="jquery-1.12.1.js" type="text/javascript"></script>
<style>
*{margin:0;border:0;padding:0;}
#head-photo
{
width:100px;
height:120px;
border:5px solid green;
text-align:center;
}
#head-photo img
{
vertical-align:middle;
display:none;
}
</style>
<script>
$(document).ready(function(){
$(“#head-photo”).mouseover(function(){
$(‘.x1’).css(‘display’,‘inline’)}
)});
</script>
</head>
<body>
<div id='head-photo'>
<img src='' width=50px height=70px />
<img class='x1' src='head-camera.gif' />
</div>
</body>
</html>
你的引号都是全角的??