Bootstrap 3 grid system does not work correctly within a 3rd party styled div (Kendo)

后端 未结 1 1288
时光说笑
时光说笑 2020-12-07 05:32

See issue demonstration: full issue demonstration and sandbox

I would like to use Bootstrap 3 grid system within a

element. This
相关标签:
1条回答
  • 2020-12-07 06:15

    See here for an explanation of the issue and a possible workaround:

    http://docs.telerik.com/kendo-ui/using-kendo-with-twitter-bootstrap

    Kendo UI uses the default content-box box model (box-sizing CSS property), while Bootstrap uses the non-default bordex-box model and applies it to all elements on the page, including ones that are unrelated to Bootstrap. This breaks the layout of the Kendo UI widgets, which are placed inside a Bootstrap grid layout, forcing us to override the Bootstrap CSS and reapply the content-box box model to Kendo UI widgets. As a result, a Bootstrap grid layout placed inside a Kendo UI widget will not work as expected. In general, multiple level nesting of the two products is bound to break the one that is on the inside, unless an additional CSS rule is used for each new level of nesting.

    0 讨论(0)
提交回复
热议问题