Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 3 years ago
parent
commit
c5f6a7a9fb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      public/home/search.js

+ 2
- 2
public/home/search.js View File

@@ -729,10 +729,10 @@ function getYPosition(e){
function showTip(tip, type,left,top) {
var $tip = $('#tipmsg');
var tipmsg = document.getElementById("tipmsg")
var style="z-index:10024;top:" + top + "px;left:" + left + "px;position:absolute;width:200px;height:30px";
var style="z-index:10024;top:" + top + "px;left:" + left + "px;position:absolute;width:200px;height:60px;vertical-align:middle;";
console.log(style);
tipmsg.style = style;
var html ="<p style=\"height:30px; line-height:30px; width:200px; overflow:hidden;\">" + tip + "</p>"
var html ="<p>" + tip + "</p>"
$tip.stop(true).prop('class', 'alert alert-' + type).html(html).fadeIn(500).delay(2000).fadeOut(500);
}



Loading…
Cancel
Save