加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

laydate兼容bootstrap

发布时间:2020-12-17 21:03:01 所属栏目:安全 来源:网络整理
导读:laydate兼容bootstrap 蕃薯耀 2015年9月8日 10:33:43 星期二 伦理片? http://www.dotdy.com/ 在使用Bootstrap后,再使用laydate,框会偏移一点,原因是 Bootstrap 使用了 * {box-sizing:border-box;} 来reset浏览器的默认盒子模型。所以加上以下样式就能兼容

laydate兼容bootstrap

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

蕃薯耀 2015年9月8日 10:33:43 星期二

伦理片?http://www.dotdy.com/

在使用Bootstrap后,再使用laydate,框会偏移一点,原因是Bootstrap使用了 * {box-sizing:border-box;}

来reset浏览器的默认盒子模型。所以加上以下样式就能兼容Bootstrap了

?

  1. Html代码??

    收藏代码

    1. ?.laydate_box,?.laydate_box?*?{??
    2. ??????box-sizing:content-box;??
    3. }??
    ?
  2. 另外,由于input的样式不一样,导致输入框大小不一致,可以加上下面的样式兼容:
  3. input.laydate-icon,div.laydate-icon{??
  4. ????display:?block;??
  5. ????width:?100%;??
  6. ????height:?34px;??
  7. ????padding:?6px?12px;??
  8. ????font-size:?14px;??
  9. ????line-height:?1.42857143;??
  10. ????color:?#555;??
  11. ????border:?1px?solid?#ccc;??
  12. ????border-radius:?4px;??
  13. ????-webkit-box-shadow:?inset?0?1px?1px?rgba(0,.075);??
  14. ????box-shadow:?inset?0?1px?1px?rgba(0,250); line-height:18px"> ????-webkit-transition:?border-color?ease-in-out?.15s,-webkit-box-shadow?ease-in-out?.15s;??
  15. ????-o-transition:?border-color?ease-in-out?.15s,box-shadow?ease-in-out?.15s;??
  16. ????transition:?border-color?ease-in-out?.15s,250); line-height:18px"> }??
  17. div.laydate-icon{??
  18. ????text-align:?left;??
  19. }??
?

?

蕃薯耀 2015年9月8日 10:33:43 星期二

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读