Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/423.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript IE11上的输入占位符问题_Javascript_Html_Css_Angular_Angular2 Template - Fatal编程技术网

Javascript IE11上的输入占位符问题

Javascript IE11上的输入占位符问题,javascript,html,css,angular,angular2-template,Javascript,Html,Css,Angular,Angular2 Template,我不熟悉angular 2和angular 4。我刚把我的申请表从2改为4。所以,这里我面临一个问题,在IE11上,当接收到焦点时,占位符被移除,表单控件被设置为dirty,pristine被设置为false。在chrome/FF上,此问题从未发生。 我的Html就像- <input type="text" class="form-control" id="processName" [(ngModel)]="process.dis

我不熟悉
angular 2
angular 4
。我刚把我的申请表从2改为4。所以,这里我面临一个问题,在IE11上,当接收到焦点时,占位符被移除,表单控件被设置为dirty,pristine被设置为false。在chrome/FF上,此问题从未发生。

我的Html就像-

    <input type="text" class="form-control" id="processName" 
                         [(ngModel)]="process.displayName" [disabled]="isProcessLoading"
                         #processName="ngModel" maxLength="64" pattern="^.*\S.*" name="processName"
 placeholder="{{'PROCESS-FORM.name-placeholder' | translate}}" required
                         placeholderRequired [inputBinding]="processName"/>


我不明白为什么会这样?提前感谢。

使用IE开发工具的仿真选项卡,找出您的站点正在使用的IE仿真模式(也称为documentMode)。删除焦点上的占位符文本是默认的IE11行为。刚刚在Windows10上检查了IE11。你可以自己试试。我也面临着同样的问题,你可以在这里找到,使用IE的开发工具的仿真选项卡来找出你的站点正在使用哪种IE仿真模式(也称为documentMode)。删除焦点上的占位符文本是默认的IE11行为。刚刚在Windows10上检查了IE11。你可以自己试试。我也面临同样的问题,你可以在这里找到,