0
ie6에서 작동하도록 응용 프로그램을 가져와야합니다. 기본 로그인 페이지가 작동하지 않는 것을 발견했습니다. 흰색의 로그인 섹션은 머리글 오른쪽에 있으며 더 중요한 것은 입력란에 아무 것도 입력 할 수 없습니다. 이 문제를 어떻게 해결할 수 있습니까?기본 ASP.NET MVC 2 웹 페이지가 IE6에서 작동하지 않습니다.
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ITOC.WebUI.Models.LogOnModel>" %>
<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
Log On
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
<h2>Log On</h2>
<p>
Please enter your username and password.
</p>
<% using (Html.BeginForm()) { %>
<%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %>
<div>
<fieldset>
<legend>Account Information</legend>
<div class="editor-label">
<%: Html.LabelFor(m => m.UserName) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(m => m.UserName) %>
<%: Html.ValidationMessageFor(m => m.UserName) %>
</div>
<div class="editor-label">
<%: Html.LabelFor(m => m.Password) %>
</div>
<div class="editor-field">
<%: Html.PasswordFor(m => m.Password) %>
<%: Html.ValidationMessageFor(m => m.Password) %>
</div>
<div class="editor-label">
<%: Html.CheckBoxFor(m => m.RememberMe) %>
<%: Html.LabelFor(m => m.RememberMe) %>
</div>
<p>
<input type="submit" value="Log On" />
</p>
</fieldset>
</div>
<% } %>
</asp:Content>
페이지 소스에서 번역하십시오.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Log On
</title><link href="../Content/Site.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.js" type="text/javascript" language="javascript"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/overcast/jquery-ui.css" type="text/css" rel="Stylesheet" class="ui-theme" />
<script type="text/javascript">
$(function() {
$(".datePicker").datepicker({ showOn: 'both', dateFormat: 'dd/mm/yy' });
});
// $(function() {
// jQuery.validator.addMethod("mustexistproperty", function (value, element, params) {
// if (this.optional(element)) {
// return true;
// }
// var otherPropertyControl = $("#" + params.otherProperty);
// if (otherPropertyControl == null) {
// return false;
// }
// var otherPropertyValue = otherPropertyControl[0].value;
// return (otherPropertyValue.length + value.length > 0);
// });
// });
</script>
</head>
<body>
<div class="page">
<div id="header">
<div id="title">
<h1>Instruction To Open Contract (ITOC)</h1>
</div>
<div id="logindisplay">
[ <a href="/">Log On</a> ]
</div>
<div id="menucontainer">
</div>
</div>
<div id="main">
<h2>Log On</h2>
<p>
Please enter your username and password.
</p>
<form action="/Account/LogOn?ReturnUrl=%2fContract%2fDetails%2f3" method="post">
<div>
<fieldset>
<legend>Account Information</legend>
<div class="editor-label">
<label for="UserName">User name</label>
</div>
<div class="editor-field">
<input id="UserName" name="UserName" type="text" value="" />
</div>
<div class="editor-label">
<label for="Password">Password</label>
</div>
<div class="editor-field">
<input id="Password" name="Password" type="password" />
</div>
<div class="editor-label">
<input id="RememberMe" name="RememberMe" type="checkbox" value="true" /><input name="RememberMe" type="hidden" value="false" />
<label for="RememberMe">Remember me?</label>
</div>
<p>
<input type="submit" value="Log On" />
</p>
</fieldset>
</div>
</form>
<div id="footer">
</div>
</div>
</div>
</body>
</html>
다른 브라우저에서 사이트가 작동합니까? IE8, 파이어 폭스? – Niike2
** 기본 페이지가 아닌 **입니다. 맞춤 스크립트와 CSS를 포함 시켰습니다. 어쩌면 그들은이 행동을 일으키는 것일 수 있습니다. –
파이어 폭스를 사용하면 파이어 버그가 오류에 대해 불평하지 않습니까? –