我有一些元素的定位问题,在检查它的IE8开发人员工具时,它向我显示了以下内容:
现在我很确定我的问题是那个12偏移量,但是我怎么才能把它去掉呢,?我找不到任何关于CSS偏移量属性的内容。除了保证金之外,我们还需要补偿吗?
下面是生成以下代码的代码:
<div id="wahoo" style="border: solid 1px black; height:100px;">
<asp:TextBox ID="inputBox" runat="server" />
<input id="btnDropDown" type="button" style="width:26px; height:26px; background-position: center center; border-left-color: buttonface; background-image: url(Images/WebResource.gif); border-bottom-color: buttonface; border-top-color: buttonface; background-repeat: no-repeat; border-right-color: buttonface;" tabindex="99" />
<div id="ListboxWrapper" style="display:none; position:absolute; onfocusout="this.style.display = 'none'"">
<asp:ListBox ID="lstBoxCompany" runat="server" AutoPostBack="True" OnSelectedIndexChanged="lstBoxCompany_SelectedIndexChanged" style="z-index: 100;" Width="300px" />
</div>
</div>
带有偏移量的元素是inputBox
https://stackoverflow.com/questions/4817745
复制相似问题