2011-09-07 121 views
0

在我的模型我有水印问题与Internet Explorer

[Display(Prompt="Author First Name",Name="First Name")] 
[StringLength(100,ErrorMessage="First Name may not be longer than 100 characters")] 
public string AuthFirstName { get; set; } 

我有一个String.cshtml文件,它是

@Html.TextBox("",ViewData.TemplateInfo.FormattedModelValue, new { @class="text-box single-line", placeholder = ViewData.ModelMetadata.Watermark }) 

在Firefox和时,显示我的形式铬它正确显示水印每次。 由于某些原因,我无法让他们在Internet Explorer中显示,不幸的是,我的大部分用户群都将使用此浏览器。我确实安装了Chrome框架,安装后我在IE中获得了水印,但这可能不是我的许多非技术用户最理想的解决方案。

在此先感谢!

回答