在IE浏览器中,AngularJS ng-option显示效果不佳 [英] AngularJS ng-option is displayed not good in IE browser

查看:79
本文介绍了在IE浏览器中,AngularJS ng-option显示效果不佳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用ng-option和textbox时遇到问题,请帮助我!

I have issue with IE when I use ng-option and textbox, please help me !

我调查过,当我删除属性占位符时,它工作正常,但我想要使用占位符来解释我的文本框

I investigated, When I remove attribute placeholder it worked ok, but I want to use placeholder to explain for my textbox

按照步骤重现此问题:

在IE上打开浏览器:

第1步:点击TextBox

Step 1: Click on TextBox

第2步:点击下拉列表

预期结果:  select标签的选项效果很好,而不是展开宽度 

实际结果:选项扩展宽度

我的脚本:

推荐答案

Hi Thong Nguyen Quy,

Hi Thong Nguyen Quy,

我已经测试了你的代码,这个问题与角度无关js,你只能使用select元素和textbox元素来测试,你可以在IE中得到同样的问题,我认为这个问题是select元素和
占位符之间冲突的结果,一个解决方案,你可以通过设置文本框背景图像来笑w占位符内容。这意味着您可以将占位符内容作为图像格式,然后设置文本框的背景图像!

I have tested your code in my side, this issue is not related to the angular js, you could only use select element and textbox element to test, you could get the same problem in IE, i think this issue is result of the conflict between select element and placeholder, one work around solution, you could through set textbox background image to show placeholder content. That meaning is you could put placeholder content as image format, then set the background image of textbox!

最好的问候,

Eric Du


这篇关于在IE浏览器中,AngularJS ng-option显示效果不佳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆