![](/img/trans.png)
[英]Links/icons that are generated in codebehind aren't showing up on certain mobile devices
[英]Fontawesome icons not showing up on my clients' mobile devices, can't replicate
我有一個使用fontawesome箭頭的可擴展菜單。 它可以在台式機上的所有瀏覽器上使用,也可以在我的iPhone上使用,但是我的客戶看不到箭頭。 他們在Android,iPad和MS Surface Pro上進行了測試。 我要求他們嘗試點擊應該放置圖標的區域,以查看菜單是否仍在展開並且圖標只是不可見,但菜單也不在展開。
因為菜單根本沒有展開,所以我想知道這是否是JavaScript問題? 但是它可以在移動設備上的任何地方使用嗎?
這是展開/縮回菜單的代碼
function expandMenu(button) {
var childMenu = $(button).parent().find("ul");
var hideMenu = $(button).parent().find("a.hide-second-level");
$(button).hide();
hideMenu.show();
$(childMenu).show();
}
function retractMenu(button) {
var childMenu = $(button).parent().find("ul");
var showMenu = $(button).parent().find("a.show-second-level");
$(button).hide();
showMenu.show();
$(childMenu).hide();
}
鏈接:
<a href="javascript:void(0)" onclick="expandMenu($(this))" class="show-second-level toggle"><i class="fa fa-caret-down"></i></a><a href="javascript:void(0)" onclick="retractMenu($(this))" class="hide-second-level toggle"><i class="fa fa-caret-up"></i></a>
我想我曾經經歷過一次。 英足總有些圖標出現問題。 您是否嘗試過其他圖標進行測試?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.