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

laydate兼容bootstrap

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

laydate兼容bootstrap

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

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

http://fanshuyao.iteye.com/

?

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

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

?

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

?

?

?

?

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

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

http://fanshuyao.iteye.com/

(编辑:李大同)

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

    推荐文章
      热点阅读