【jQuery】求教,问题出在哪?

没有效果。
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>
阅读 2k
1 个回答

你的引号都是全角的??

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进