<div> <a> buttons not working on iPhone

时间:2015-07-01 14:36:55

标签: css iphone internet-explorer button

We have some buttons that are not responsive on iPhone and Apple touch devices.

They use the following written in VB:

<div class="btn-group admin" data-id="Admin">
        <a class="custom-open-close" data-toggle="dropdown" href="#">Admin</a>
        <ul class="custom-dropdown-menu">
            <li><%: Html.ActionLink("page 1", "page 1", "model")%></li>
            <li><%: Html.ActionLink("page 2", "page 2", "Model")%></li>
            <li class="divider-line"></li>                
        </ul>
    </div>

Firstly, I have found this is awesomefont plugin, that a colleague who left had customised. I thought that changing to would resolve the matter, and it did resolve for iPhones. However, it broke the dropdowns on IE.

Two questions: 1, Is this the correct way to have a drop down? I cannot find the source of any classes 2, Is there a way to check the browser and load the page either div or button?

Or is there something I have done wrong?

1 个答案:

答案 0 :(得分:0)

这只是HTML,类custom-dropdown-menu控制下拉菜单的外观。如果您需要在IE上进行调试,请按F12并转到开发人员工具。示例屏幕截图enter image description here