正在显示
1 个修改的文件
包含
8 行增加
和
14 行删除
@@ -282,7 +282,7 @@ | @@ -282,7 +282,7 @@ | ||
282 | <?php foreach ($row as $info) { ?> | 282 | <?php foreach ($row as $info) { ?> |
283 | <div class="col-xs-6 col-md-3"> | 283 | <div class="col-xs-6 col-md-3"> |
284 | <div class="panel bg-blue"> | 284 | <div class="panel bg-blue"> |
285 | - <div class="panel-body" id="open" onclick=""> | 285 | + <div class="panel-body" onmouseover="func()" onmouseout="func1()" id="open" onclick=""> |
286 | <div class="panel-title"> | 286 | <div class="panel-title"> |
287 | <span class="label label-success pull-right">{:__('Real time')}</span> | 287 | <span class="label label-success pull-right">{:__('Real time')}</span> |
288 | <h5><?= $info["zhandian_name"]?></h5> | 288 | <h5><?= $info["zhandian_name"]?></h5> |
@@ -338,18 +338,12 @@ | @@ -338,18 +338,12 @@ | ||
338 | ; | 338 | ; |
339 | </script> | 339 | </script> |
340 | <script type="text/javascript"> | 340 | <script type="text/javascript"> |
341 | - var Open = document.getElementById("open"); | ||
342 | - | ||
343 | - function HoverAndMouseout() { | ||
344 | - Open.hover( | ||
345 | - function () { | ||
346 | - console.log(1); | ||
347 | - $(this).css({"width": "500px"});//移上宽度变为500 | ||
348 | - }); | ||
349 | - Open.mouseout( | ||
350 | - function () { | ||
351 | - console.log(2); | ||
352 | - $(this).css({"width": "170px"});//移开还原 | ||
353 | - }); | 341 | + function func() { |
342 | + // var Open = document.getElementById("open"); | ||
343 | + console.log(1); | ||
344 | + } | ||
345 | + | ||
346 | + function func1() { | ||
347 | + console.log(2); | ||
354 | } | 348 | } |
355 | </script> | 349 | </script> |
-
请 注册 或 登录 后发表评论