SORU
27 Ocak 2011, PERŞEMBE


Nasıl bir öğe kurtulmak'CSS kullanarak s uzaklık mı?

Bazı unsurları ile konumlandırma bir sorun var, IE8 Geliştirici Araçları inceleme sırasında bana bunu göstermekte

Where does offset come from?

Şimdi benim sorunum şu 12 ofset eminim amabunu nasıl kaldırabilirim? Bir CSS herhangi bir söz kaydırma özelliği bulamıyorum. Bir kenar boşluğu ek olarak Ofset ihtiyacımız var mı?

Burada kod değil yapımcı:

 <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>

Uzaklık olan öğe inputBox

CEVAP
20 AĞUSTOS 2011, CUMARTESİ


Uzaklık temelde tarayıcı elemanı pozisyonuna göre css özniteliği hesaplanmış olan x,y konumu. Eğer bu veya başka önce <br> bir öğe koyarsanız, uzaklık değiştirebilir. Örneğin, 0 ile ayarlayabilirsiniz:

#inputBox{position:absolute;top:0px;left:0px;}

ya

#inputBox{position:relative;top:-12px;left:-2px;}

Ne olursa olsun, bu nedenle, her zaman üst, sol,sağ ve alt öznitelikleri ile oynayarak kendini hazırlarsın ama uzaklık sorun değil.

Senin sorunun uyumsuzluk tarayıcı nedir?

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • 365multimedia

    365multimedi

    26 ŞUBAT 2009
  • iMasterful

    iMasterful

    11 EYLÜL 2009
  • Justin Davis

    Justin Davis

    14 Ocak 2008