日期:2014-05-16  浏览次数:20454 次

为什么事件触发不了?
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".lowerDiv").hide();
            $(".blockDiv").mouseover(
            function (e) {
                var lowerDiv = document.createElement("div");
                $(lowerDiv).addClass("lowerDiv");
                $(".lowerDiv").show();
                $(".lowerDiv").mouseout(function () {
                    $(".lowerDiv").hide();
                });
            });

        });
    </script>
    <style type="text/css">
        .blockDiv
        {
            border: 1px solid #cccccc;
            background-color: #ababab;
            width: 180px;
            height: 100px;
            position: relative;
        }
        .lowerDiv
        {
            width: 220px;
            height: 140px;
            background-color: Blue;
            position: absolute;
            left: -10px;
            top: -10px;
            z-index: -1;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="blockDiv">
        <table>
            <tr>
                <td>