English 中文(简体)
能否在不影响邻近分子的情况下,在网上展示表演/ide?
原标题:Is it possible to create show/hide on display inline-block without affecting neighboring elements?

ve

当你点击显示/仇恨的环节时,你看到隐藏的文字出现。 我要确定的行为是,它如何把内容的第一和第二行推向上,而不是仅仅推向其存在的母集装箱。

换言之,如果您标明每个清单项目,它就希望:

A B         ( <---This is a faux-row, since it s not programmed to be a row)
C D

当我点击A角时,我看着这段话(H为隐藏的内容):

A B
H _
C D

D has been pushed down and this shouldn t happen. Instead, I want it to be just this:

A B
H D
C

I know I can fix this using floats, but the reason I don t want to use floats is because these columns need to emulate a table so that, no matter the height of each faux-column module, they line up in the faux-row. It s critical that each faux-row align with each other from the top down, which is why I am also used vertical-align set to top.

是否有可能让这种角度描述功能,使之只影响使用该标签的母集装箱?

问题回答

I m not 100% sure what you re asking for, but if you have the show/hide content inside of an element that is absolutely positioned, it won t affect the layout.

ry to select select

.hiddentoggle {
  display:none; // you already had this there
  background: lightBlue;
  left: 0;
  padding: 0 10px 10px;
  position: absolute;
  top: 100%;
  z-index: 1;
}

<><>UPDATE:

Based on your new information, I m curious why you don t want to use floats. I m also curious what you mean by "faux-row".

不管怎样,如果你只想在显示A内容时把C箱倒掉,实现这一点的唯一途径就是把A和C列入一个内容。 这一要素不必浮出,它还将是<代码> :inline-block,但你决定列出这一内容,但你需要做某种“column”的改动,以便你重新研究。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签