简体   繁体   English

Javascript生成的日历在mozilla firefox和chrome中显示不同

[英]Javascript generated calendar showing different in mozilla firefox and chrome

I make custom calendar in javascript. 我用javascript制作自定义日历。

In firefox (1st image) calendar is properly generated, but in chrome (2nd image) is "upside-down". 在firefox(第一张图片)中,日历会正确生成,而在chrome(第二张图片)中,日历是“上下颠倒”的。

在Firefox中

在谷歌浏览器中

There is JSFiddle example JSFiddle example

Can anyone tell me why this happening? 谁能告诉我为什么会这样?

In fiddle example I put button, and calendar is genereting, in some div, but in my webapp, instead in div ( document.getElementById('cntcal').appendChild(tbl); ), calendar is generated in form ( document.form[0].appendChild(tbl); ). 在小提琴示例中,我在某些div中放置了按钮,并且日历是通用的,但是在我document.getElementById('cntcal').appendChild(tbl);应用程序中,而不是在div( document.getElementById('cntcal').appendChild(tbl); )中,日历以表格( document.form[0].appendChild(tbl); )。

ps sorry for weak English, I hope you people will understand problem. ps对不起,英语不好,希望大家能理解。

I tested now in Google Chrome Version 40.0.2214.115 and It is working great. 我现在在Google Chrome版本40.0.2214.115中进行了测试,并且效果很好。 What version of chrome you used for testing ? 您用于测试的铬版本是什么?

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

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