我发现其他人也问了同样的问题,但没有得到答案。我正在为手风琴使用Bootstraps数据切换,它在移动设备上不起作用(不仅是IOS,而且不能在chrome开发人员工具或我的Galaxy S8上工作)。
<!-- How it Works -->
<div id="howItWorks" class="interiorContent">
<div class="container">
<div class="intContHead">
<h2>How it Works</h2>
</div>
<div class="accordion" id="howItWorksAccordion">
<div class="card">
<div class="card-header" id="headingOne">
<h6 class="mb-0">
<a role="button" data-toggle="collapse" data-parent="#howItWorksAccordion" data-target="#collapseOne" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Step 1: Create ASComm.NET Configuration File
</a>
</h6>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#howItWorksAccordion">
<div class="card-body">
<p>For more advanced applications (branded, database, etc.), you can build your own configuration
application that utilizes ASComm.NET's configuration and serialization capabilities.</p>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<h6 class="mb-0">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#howItWorksAccordion" href="#collapseTwo" aria-expanded="false"
aria-controls="collapseTwo">
Step 2: Add ASComm Excel Add-in to Excel.
</a>
</h6>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#howItWorksAccordion">
<div class="card-body">
<p>
<strong>NOTE: Step 2 only needs to be perfomed once. If you have already added ASComm.NET Excel Add-in
to Excel, proceed to Step 3.</strong>
</p>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingThree">
<h6 class="mb-0">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#howItWorksAccordion" href="#collapseThree" aria-expanded="false"
aria-controls="collapseThree">
Step 3: Configure ASComm.NET Excel Add-in Operating Parameters
</a>
</h6>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#howItWorksAccordion">
<div class="card-body">
<p>3.1 Locate the ASComm.NET tab on the Excel ribbon</p>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingFour">
<h6 class="mb-0">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#howItWorksAccordion" href="#collapseFour" aria-expanded="false"
aria-controls="collapseFour">
How to Read and Log Data
</a>
</h6>
</div>
<div id="collapseFour" class="collapse" aria-labelledby="headingFour" data-parent="#howItWorksAccordion">
<div class="card-body">
<img alt="Excel AddIn Ribbon" class="img-responsive" src="../../../images/ascomm_excel_addin_ribbon.png">
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingFive">
<h6 class="mb-0">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#howItWorksAccordion" href="#collapseFive" aria-expanded="false"
aria-controls="collapseFive">
How to Write Data
</a>
</h6>
</div>
<div id="collapseFive" class="collapse" aria-labelledby="headingFive" data-parent="#howItWorksAccordion">
<div class="card-body">
<!--Manual Start-->
<p>ASComm Excel Add-in can read data from hardware devices and populate Excel spreadsheets without
writing any code.</p>
</div>
</div>
</div>
</div>
</div>
</div>
我尝试添加curser:指向我的a标签的指针,并尝试将a标签更改为按钮标签。当我单击链接时,我看到了chrome开发人员工具中的元素-第一张卡片从class =“ collapses”变为class =“ collapsing”变为class =“ collapse”,但没有任何反应。 (第一张卡片应该在页面访问时显示)。
答案 0 :(得分:1)
将代码粘贴到正在进行的项目文件中...已上传到Web服务器上...一切正常...已在Chrome移动浏览器上进行过测试...版本68.0 ... 我使用的版本(如果有帮助): Bootstrap 4.1.2 jQuery的3.3.1 Popper.js 1.14.3