我已经建立了一个接受表单数据的网页。它使用bootstrap来展开和折叠表单的各个部分。折叠和展开既可以手动进行,也可以通过编程方式进行。
不起作用的是通过事件更改字形图标。
以下代码可以在桌面上运行,但不能在iPhone上运行。
$('.collapse').on(
'shown.bs.collapse', function()
{
$(this).parent().find(".glyphicon-triangle-right").removeClass("glyphicon-triangle-right").addClass("glyphicon-triangle-bottom");
}
).on(
'hidden.bs.collapse', function()
{
$(this).parent().find(".glyphicon-triangle-bottom").removeClass("glyphicon-triangle-bottom").addClass("glyphicon-triangle-right");
}
);有没有一种方法可以通过iPhone上的Safari代码来改变字形图标?
https://stackoverflow.com/questions/41404484
复制相似问题