How to not use
in markup

前端 未结 3 667
情话喂你
情话喂你 2020-12-30 03:20

All the time my code is riddled with

\'s that are used to clear/expand a div to look correct. Whenever it doesn\'t look correct, I add a
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 04:01

    In Cascade Framework I apply the micro-clearfix by default on block level elements. This allows you to avoid the use of stuff like

    or
    with but very minimal side-effects. And if you really want traditional behavior for block level elements, absolute positioning should do the trick. Check out Cascade Framework for yourself to get an idea of how practical it really is.

提交回复
热议问题