我用 j子制造一个完全超出现有内容的内容。 这至少带有意图。
The context is similar to what goes on here:
A List Apart: Making Compact Forms More Accessible
The idea is that you have an element, such as an <input>
, and under certain conditions you display another element (in this case a <label>
) absolutely positioned on top of it as a hint. Though the general principle is useful in other scenarios as well.
现有几家图书馆这样做,但似乎都按同样的思路细分。
www.un.org/Depts/DGACM/index_spanish.htm 神经方法:
- Create the cover element with
display:block
andposition:absolute
. - Set the
left
andtop
of your cover element to match your covered element
www.un.org/Depts/DGACM/index_spanish.htm 略微改进的办法:
- Create the cover element with
display:block
andposition:absolute
- Add the cover element immediately before the covered element in the DOM
- Set the bottom and right margin of the cover to the negative height and width of the cover
www.un.org/Depts/DGACM/index_spanish.htm 这种办法解决了流布问题,但增加了一个问题,即如果所涉内容属于<条形码>(<>>条/代码>栏目之内,则该封面在显示(由于插入了块状元素)时将产生突破。
也许这是一个已经由人解决的问题。