我使用的是Angular ui-bootstrap手风琴。使用我当前的代码,我无法单击并打开整个标题面板,只能点击标题标题(标题)并打开手风琴。任何帮助表示赞赏。提前致谢 !这是我的HTML:
public enum Packets {
PACKET_NONE(0),
PACKET_SYNC(1),
PACKET_EXPECT_TO_RECEIVE(2),
PACKET_AVAIL_1(3),
PACKET_FILL(13),
PACKET_GLASS(),
PACKET_FILLI(),
PACKET_GLASSI();
static {
for (Packets p : Packets.values()) {
if (p.getId() == -1) {
if (p.ordinal() == 0) {
p.setId(0);
} else {
p.setId(Packets.values()[p.ordinal() - 1].getId() + 1);
}
}
}
}
private int id;
private Packets(int id) {
this.id = id;
}
private Packets() {
this.id = -1;
}
public final int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
答案 0 :(得分:2)
而不是......
<uib-accordion-heading>
Click me
</uib-accordion-heading>
设置您uib-accordion-heading
以包含全宽度元素,例如p
,p
也会提供一些默认保证金,因此请务必将其删除(或进行足够的调整),以便赢得& #39;弄乱你的风格。
<uib-accordion-heading>
<p style="margin-bottom: 0;"> Click me </p>
</uib-accordion-heading>