.net Ajax calendarExtender 在 IE7 中剪切星期六(在 Firefox 中工作正常)

发布于 2024-07-16 20:10:06 字数 149 浏览 13 评论 0原文

我在 IE7 中遇到了这个问题,日历中似乎缺少星期六。 它在 Firefox 中显示良好,一些人建议这可能是我的其他样式表搞乱了它,所以我现在使用自定义日历 CSS 主题,但我仍然遇到同样的问题。

有任何想法吗? 使用的 ajax 工具包是否存在已知错误?

I was having this problem in IE7 where the saturdays appear to be missing from the calendar. It displays fine in Firefox and a few people have suggested that it could be my other stylesheets messing it up so i am now using a custom calendar CSS theme and i'm still having the same problem.

Any ideas? is there a known bug with the ajax toolkit pack that is used?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

寂寞美少年 2024-07-23 20:10:06

这是一个解决方案:

.cal_Theme1 .ajax__calendar_days td { padding:0px; }

here's a solution:

.cal_Theme1 .ajax__calendar_days td { padding:0px; }
白馒头 2024-07-23 20:10:06

SocialAddict 给出了很好的答案,但它对我不起作用......

我的问题是主体/容器的大小。

所以这就是治愈我的方法:

<style>
    div.ajax__calendar_days table tr td{padding-right: 0px;}
    div.ajax__calendar_body{width: 205px;}
    div.ajax__calendar_container{width: 205px;}
</style>

我还改变了我的日历样式,(就像 SocialAddict 所做的那样),但这种样式是开箱即用的。

Great answer from SocialAddict, but it didn't work for me...

My problem was the body/container size.

So here is what cured me:

<style>
    div.ajax__calendar_days table tr td{padding-right: 0px;}
    div.ajax__calendar_body{width: 205px;}
    div.ajax__calendar_container{width: 205px;}
</style>

I also changed my calendar style, (like SocialAddict did), but this style works out of the box.

嘿嘿嘿 2024-07-23 20:10:06

Asp 代码:

            <asp:TextBox ID="F1_I2" runat="server" CssClass="bigInput">
            </asp:TextBox>
            <cc1:CalendarExtender ID="F1_I2_CalendarExtender" CssClass="cal_Theme1" runat="server" 
                TargetControlID="F1_I2" Format="dd/MM/yyyy">
            </cc1:CalendarExtender>
            <div class="magiPad" />

我有一个应用于日历的自定义 CSS,我认为它不会在这里很好地显示,但就是这样:

/* Calendar css */
.cal_Theme1 .ajax__calendar_container {background-color: #e2e2e2;width:182px;border:solid 1px #cccccc;}
.cal_Theme1 .ajax__calendar_header{background-color: #ffffff; margin-bottom: 4px;}
.cal_Theme1 .ajax__calendar_title,.cal_Theme1 .ajax__calendar_next,.cal_Theme1 .ajax__calendar_prev{color: #004080; padding-top: 3px;}
.cal_Theme1 .ajax__calendar_body{background-color: #e9e9e9; border: solid 1px #cccccc;}
.cal_Theme1 .ajax__calendar_dayname{text-align:center; font-weight:bold; margin-bottom: 4px; margin-top: 2px;}
.cal_Theme1 .ajax__calendar_day{text-align:center;}
.cal_Theme1 .ajax__calendar_hover .ajax__calendar_day,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_month,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_year,.cal_Theme1 .ajax__calendar_active{color: #004080; font-weight:bold; background-color: #ffffff;} 
.cal_Theme1 .ajax__calendar_today{font-weight:bold;} 
.cal_Theme1 .ajax__calendar_other,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_today,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_title{color: #bbbbbb;} 

Asp code:

            <asp:TextBox ID="F1_I2" runat="server" CssClass="bigInput">
            </asp:TextBox>
            <cc1:CalendarExtender ID="F1_I2_CalendarExtender" CssClass="cal_Theme1" runat="server" 
                TargetControlID="F1_I2" Format="dd/MM/yyyy">
            </cc1:CalendarExtender>
            <div class="magiPad" />

I have a custom CSS applied to the calendar which i dont think will display well on here, but this is it:

/* Calendar css */
.cal_Theme1 .ajax__calendar_container {background-color: #e2e2e2;width:182px;border:solid 1px #cccccc;}
.cal_Theme1 .ajax__calendar_header{background-color: #ffffff; margin-bottom: 4px;}
.cal_Theme1 .ajax__calendar_title,.cal_Theme1 .ajax__calendar_next,.cal_Theme1 .ajax__calendar_prev{color: #004080; padding-top: 3px;}
.cal_Theme1 .ajax__calendar_body{background-color: #e9e9e9; border: solid 1px #cccccc;}
.cal_Theme1 .ajax__calendar_dayname{text-align:center; font-weight:bold; margin-bottom: 4px; margin-top: 2px;}
.cal_Theme1 .ajax__calendar_day{text-align:center;}
.cal_Theme1 .ajax__calendar_hover .ajax__calendar_day,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_month,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_year,.cal_Theme1 .ajax__calendar_active{color: #004080; font-weight:bold; background-color: #ffffff;} 
.cal_Theme1 .ajax__calendar_today{font-weight:bold;} 
.cal_Theme1 .ajax__calendar_other,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_today,.cal_Theme1 .ajax__calendar_hover .ajax__calendar_title{color: #bbbbbb;} 
↙温凉少女 2024-07-23 20:10:06

如果其他人有这个问题,那么我建议在样式的开头设置一个通配符 css 元素,以消除所有可能的填充和边距问题。

这解决了 IE6.IE7 中的问题,firefox 也可以正常工作。

.yourCalendarTheme * {padding:0px;margin:0px;}

If anyone else has this problem then i recommend setting a wildcard css element at the beginning of your style to blank out all posible padding and margin issues.

This fixes the problem in IE6.IE7 and firefox works fine too.

.yourCalendarTheme * {padding:0px;margin:0px;}
若相惜即相离 2024-07-23 20:10:06

我遇到了类似的问题,并且标记为最佳的解决方案(由 SocialAddict)对我不起作用。 我的问题的核心是表中设置的 CSS 类导致我的日历扩展器在周六被切断。 有效的解决方案涉及修改日历扩展程序的 CSS。 这是:

.ajax__calendar_body tr td {
 padding: 0px; 
 margin: 0px;}

I had a similar problem and the solution marked as best (by SocialAddict) did not work for me. The core of my problem is that a css class set in a table was causing my calender extender to cut off Saturdays. The solution that worked involved modifying the calender extender's css. Here it is:

.ajax__calendar_body tr td {
 padding: 0px; 
 margin: 0px;}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文