max-width:-webkit-fit-content ie 8 equivalent?

前端 未结 4 569
感动是毒
感动是毒 2021-02-08 18:59

Are there any hacks for max-width:-webkit-fit-content; for ie 8?

Trying to get a child div to not take up the whole width of the parent and this works well

4条回答
  •  轮回少年
    2021-02-08 19:45

    The closest I can think of is floating your elements. Not exactly alike, but probably sufficiently alike;) You need to set extra margin though, but this should be no problem with a conditional stylesheet.

    .textbox {
        background-color: yellow;
        float:left;
        clear:left;
    }
    

    Your modified fiddle

提交回复
热议问题