这是我的代码:
HTML
<div class="box-booking-item">
<a href="javascript:void(0);" class="box-booking-item-content">
<span class="box-booking-tendina">
<span id="tendina_128" class="box-booking-tendina-elemento">Field 1</span>
<span id="tendina_147" class="box-booking-tendina-elemento">Field 2</span>
<span id="tendina_149" class="box-booking-tendina-elemento">Field 3</span>
<span id="tendina_151" class="box-booking-tendina-elemento">Field 4</span>
<span id="tendina_152" class="box-booking-tendina-elemento">Field 5</span>
</span>
</a>
</div>
CSS
.box-booking-item
{
position:relative;
width:100px;
}
.box-booking-item-content
{
width:100%;
cursor:pointer;
}
.box-booking-tendina
{
display:block;
overflow-y: scroll;
height:80px;
}
.box-booking-tendina-elemento
{
height:22px;
display:block;
}
尝试在 Firefox 上(我有 12.0,但尝试使用 10.0 和 11.0,它是相同的),单击滚动条,然后滚动到向下/向上(按该条,而不是使用向上和向下箭头)。就像它“拖动”整个容器 div。
为什么会有这种行为?我该如何解决这个问题?