English 中文(简体)
是否在父母四分五分五裂的情况下,没有具体说明儿童的宽度,只是儿童的内容
原标题:Is it there anyway to make a div within a div breakout of the parent div without specifying widths of child, just childs elements

因此,我有四分之四,下文是隐藏的四分之四,其范围比上述四大。 我要具体指出,在座的 d子里,有比上半部大的 w子。 这些内容与上述四点右侧一致,但鉴于范围更广,左侧要打破。 下面的四分层的距离上四分之四,因为只有点击上面四的触发点。

基本上,其下级名单,有些随机元素比上面的图像内容大,而如果点击,则该清单会下降。 但是,我希望名单上的下层能够扩大,以弥补父母四分五裂的左边,而没有具体说明确切的立场。 因此,正如父母一样,这些要素是父母的全体子女,也是与其相适应的权利。

Hmmm, 希望你能够照此办理。 真正感谢任何帮助。 提前感谢。

最佳回答

消极的边缘化似乎是最好的答案。 如果任何人都知道交叉浏览器问题,请在此张贴。 或许 我只读一个星期或两个星期。

问题回答

你们或许应该只是使用一个选择的标签(为了无障碍环境),尽管它赢得的只是表面。 但是,如果你重新提出,就尝试像这样的东西(并增加你的 j法以掩盖/how名单):

#wrapper {
    width: 500px;
}
#select {
    border: 1px solid black;
    width: 180px;
    float: right;
}
#options {
    float: right;
    clear: right;
    text-align: right;
}

以及

<div id="wrapper">
    <div id="select">pick one...</div>
    <div id="options">
        <div class="option">I m short</div>
        <div class="option">I m a very very very very very long option</div>
    </div>
</div>

If you end up using this, change the options div to a ul tag 以及 the option divs to li tags, or something semantically closer to what you re building. I just used divs to cut down on the amount of css in my example.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签