my97的兼容性问题:
                <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="StrongSoft.OceanWeather._Test" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <script src="JScript/calendar/WdatePicker.js" type="text/javascript"></script>
</head>
<body style="margin: 0; padding: 0;">
    <form id="form1" runat="server">
    <div style="height: 860px; background: blue">
        <input id="txtStarTime" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH时'})"
            type="text" style="width: 115px" value='<%=DateTime.Now.ToString("yyyy-MM-dd HH时") %>' />
    </div>
    </form>
</body>
</html>滚动条拉到最下方会多出10几个像素的高度,请问各位大侠

解决方案 »

  1.   

    直接用AjaxToolkit里面的日历控件吧。
    这控件问题是比较多,以前我调它的代码的时候调死了!!!!
      

  2.   

    我遇到过这个问题,不过没有解决
    最后我尽量让my97的弹出位置不用拉动滚动条就可以显示新版本的my97可以初始化弹出窗口的位置
    Link
      

  3.   


    自己搞定<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="StrongSoft.OceanWeather._Test" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>无标题页</title>
        <script src="JScript/calendar/WdatePicker.js" type="text/javascript"></script>
    </head>
    <body style="margin: 0; padding: 0;">
        <form id="form1" runat="server">
        <div style="height: 860px; background: blue">
            <input id="txtStarTime" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH时'})"
                type="text" style="width: 115px" value='<%=DateTime.Now.ToString("yyyy-MM-dd HH时") %>' />
        </div>
        </form>
    </body>
    </html>
      

  4.   

    改成<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="StrongSoft.OceanWeather._Test" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>无标题页</title>
        <script src="JScript/calendar/WdatePicker.js" type="text/javascript"></script>
    </head>
    <body style="margin: 0; padding: 0;">
        <form id="form1">
        <div style="height: 860px; background: blue">
            <input id="txtStarTime" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH时'})"
                type="text" style="width: 115px" value='<%=DateTime.Now.ToString("yyyy-MM-dd HH时") %>' />
        </div>
        </form>
    </body>
    </html>