mirror of https://github.com/layui/laydate
兼容 Bootstrap
laydate与Bootstrap一起使用时界面会混乱,原因是laydate的布局默认是在box-size为conten-box的情况下计算的,而bootstrap使用了 * {box-size:border-box} 改写了浏览器默认配置,导致layout的各种计算错误。pull/6/head
parent
fa0dda937d
commit
78de26162b
|
@ -7,7 +7,7 @@
|
|||
**/
|
||||
|
||||
html{_background-image:url(about:blank); _background-attachment:fixed;}
|
||||
.laydate_body .laydate_box, .laydate_body .laydate_box *{margin:0; padding:0;}
|
||||
.laydate_body .laydate_box, .laydate_body .laydate_box *{margin:0; padding:0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box;}
|
||||
.laydate-icon,
|
||||
.laydate-icon-default,
|
||||
.laydate-icon-danlan,
|
||||
|
|
Loading…
Reference in New Issue