refactor: nas主题帮助页效果问题
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
<a class="nhlplxwmit nhlplxwmit-w1" {notempty name="co.link"}href="{$co.link}"{/notempty} {eq name="idx" value="3"}style="margin-right: 0;"{/eq}>
|
<a class="nhlplxwmit nhlplxwmit-w1" {notempty name="co.link"}href="{$co.link}"{/notempty} {eq name="idx" value="3"}style="margin-right: 0;"{/eq}>
|
||||||
<img src="{$co.image}" class="lximg" />
|
<img src="{$co.image}" class="lximg" />
|
||||||
{if condition="!empty($co.desc) && str_contains($co.desc, '<img')"}
|
{if condition="!empty($co.desc) && str_contains($co.desc, '<img')"}
|
||||||
<img src="{:get_path_from_img_tag($co.desc)}" class="lxewmimg">
|
<img src="{:get_path_from_img_tag($co.desc)}" class="lxewmimg" />
|
||||||
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
||||||
{else/}
|
{else/}
|
||||||
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
<a class="nhlplxwmit nhlplxwmit-w2" {notempty name="co.link"}href="{$co.link}"{/notempty} {eq name="idx%4" value="0"}style="margin-right: 0;"{/eq}>
|
<a class="nhlplxwmit nhlplxwmit-w2" {notempty name="co.link"}href="{$co.link}"{/notempty} {eq name="idx%4" value="0"}style="margin-right: 0;"{/eq}>
|
||||||
<img src="{$co.image}" class="lximg" />
|
<img src="{$co.image}" class="lximg" />
|
||||||
{if condition="!empty($co.desc) && str_contains($co.desc, '<img')"}
|
{if condition="!empty($co.desc) && str_contains($co.desc, '<img')"}
|
||||||
<img src="{:get_path_from_img_tag($co.desc)}" class="lxewmimg">
|
<img src="{:get_path_from_img_tag($co.desc)}" class="lxewmimg" />
|
||||||
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
||||||
{else/}
|
{else/}
|
||||||
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
<span class="t1" {:style(['color'=>$co.title_txt_color])}>{$co.title}</span>
|
||||||
@@ -132,12 +132,20 @@
|
|||||||
});
|
});
|
||||||
$('.nhlplxwmit:not(:first)').hover(function () {
|
$('.nhlplxwmit:not(:first)').hover(function () {
|
||||||
// 当鼠标移入时,显示.lxewmimg 并隐藏.lximg
|
// 当鼠标移入时,显示.lxewmimg 并隐藏.lximg
|
||||||
$(this).find('.lxewmimg').show();
|
var lxe = $(this).find('.lxewmimg');
|
||||||
$(this).find('.lximg').hide();
|
var lxi = $(this).find('.lximg');
|
||||||
|
if (lxe.length > 0) {
|
||||||
|
lxe.show();
|
||||||
|
lxi.hide();
|
||||||
|
}
|
||||||
}, function () {
|
}, function () {
|
||||||
// 当鼠标移出时,隐藏.lxewmimg 并显示.lximg
|
// 当鼠标移出时,隐藏.lxewmimg 并显示.lximg
|
||||||
$(this).find('.lxewmimg').hide();
|
var lxe = $(this).find('.lxewmimg');
|
||||||
$(this).find('.lximg').show();
|
var lxi = $(this).find('.lximg');
|
||||||
|
if (lxe.length > 0) {
|
||||||
|
lxe.hide();
|
||||||
|
lxi.show();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user