The coincidence means that a variety of factors contribute to this event and are indispensable. There are several factors: ie in the system is ie6 (I am not sure or clear about the difference between Small versions) compile the jsp page and use the jsp source code automatically generated by the development tool. WdatePicker is used. the js time control and some writing sequence of Page code.
The reason for classic is obvious. From the coincidence above, we can see that ie6 is definitely a classic.
All the test code is as follows (except the control-related files to be referenced)
Copy codeThe Code is as follows: <% @ page language = "java" import = "java. util. *" pageEncoding = "UTF-8" %>
<%
String path = request. getContextPath ();
String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/";
%>
<! DOCTYPE html>
<Head>
<Base href = "<% = basePath %>"/>
<Title> </title>
<Script src = "js/My97DatePicker/WdatePicker. js" type = "text/javascript"> </script>
</Head>
<Body> </body>
</Html>
The following situation occurs when running access: (Note: under special conditions, oh !!!)
Known solutions:
Method 1: Remove <base ......> Code.
Method 2: complete the end tag of <base>. You must add </base> later, instead of <base ...... />
Method 3: Set <base……> Put the code after <script src = "js/My97DatePicker/WdatePicker. js" type = "text/javascript"> </script>
PS & note: the cache of ie6 is very serious. during testing, you need to clean up temporary files in time. Otherwise, you will be excited !!!
Why? How do I know ...... I just learned about the surface issues. There are articles related to the great gods on the Internet. You can search for them based on some of the keywords mentioned in this article. It depends on you !!!