我安装了JQuery mobile和JQuery Mobile UI。
我尝试使用JQuery accordeon选项卡。
<div data-demo-html="true">
<div data-role="collapsible-set" data-theme="c" data-content-theme="d">
<div data-role="collapsible">
<h3>Section 1</h3>
<p>I'm the collapsible content for section 1</p>
</div>
<div data-role="collapsible">
<h3>Section 2</h3>
<p>I'm the collapsible content for section 2</p>
</div>
<div data-role="collapsible">
<h3>Section 3</h3>
<p>I'm the collapsible content for section 1</p>
</div>
</div>
</div>
但是当我想通过添加
来更改标题大小时<div data-role="collapsible-set" data-theme="c" data-content-theme="d" class="SystemAccordeonHeading">
类别:
的 SystemAccordeonHeading
现在无论我尝试什么:
.SystemAccordeonHeading {
font-size: 9vw !important;
}
它拒绝了它的新风格,它仍然很小...... 可能我忽略了一些东西,但JQuery文档在这一点上有点破旧。
提前致谢!!
答案 0 :(得分:0)
将班级更改为 -
.SystemAccordeonHeading a{
font-size: 9vw;
}
如果检查元素
,标题实际上是一个链接元素你不需要!important
编辑 -
请注意,如果你在手风琴中添加一个链接,那么在这种情况下它的字体也会变大。所以我编辑下面的类,所以你只得到标题。
.SystemAccordeonHeading h3 a{
font-size: 9vw;
}