简体   繁体   English

jquery weekcalendar.js错位问题

[英]jquery weekcalendar.js misalignment issue

In jquery.weekcalendar.js if i zoom in and zoom out there is a misalignment happening between the time slots and hours header like in the image below. 在jquery.weekcalendar.js中,如果我放大并缩小,则时间段和小时标题之间会发生错位,如下图所示。

在此输入图像描述

In browsers like chrome, safari and firefox i am getting this issue. 在chrome,safari和firefox等浏览器中,我遇到了这个问题。 How can i make it aligned when it is zoomed in or out? 如何在放大或缩小时对齐?

You cannot do anything in this condition unless you want to edit the sources for weekcalendar.js. 除非您要编辑weekcalendar.js的源,否则您无法在此条件下执行任何操作。 It would be better to post this problem here: https://github.com/themouette/jquery-week-calendar/issues and get the programmer to fix it. 最好在这里发布这个问题: https//github.com/themouette/jquery-week-calendar/issues并让程序员修复它。 That way all will benefit from the change. 这样一切都将从改变中受益。

You have to add a style to fix that. 你必须添加一个样式来修复它。 This works for me: 这对我有用:

*,
*:before,
*:after {
    -webkit-box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    box-sizing: content-box !important;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM