开发者

height being relative to chosen element

Do you know if I can choose the elem开发者_如何学编程ent which should be used to define relative height for other one?


The height by default will be relatively defined by its parent. Meaning that a nested div with height: 100px; will only ever be as high as the div it is inside of (not accounting for margins/padding).

You can use jQuery to set heights based on other elements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜