Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.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
如何为extjs4 promt提供身体填充?ie7和firefox中提示的渲染问题?_Extjs4 - Fatal编程技术网

如何为extjs4 promt提供身体填充?ie7和firefox中提示的渲染问题?

如何为extjs4 promt提供身体填充?ie7和firefox中提示的渲染问题?,extjs4,Extjs4,我使用简单的extjs提示符从用户那里获取一个值 Ext.Msg.prompt('Name', 'Please enter your name:', function(btn, text){ if (btn == 'ok'){ // process text value and close... }}); 在chrome中,它可以正确渲染,但在ie7和Firefox中,文本框完全拉伸,没有任何填充。这样我就看不到文本框的左侧和右侧 提前感谢。对于IE7请将此代码复制到您的HTML文件中

我使用简单的extjs提示符从用户那里获取一个值

Ext.Msg.prompt('Name', 'Please enter your name:', function(btn, text){
if (btn == 'ok'){
    // process text value and close...
}});
在chrome中,它可以正确渲染,但在ie7和Firefox中,文本框完全拉伸,没有任何填充。这样我就看不到文本框的左侧和右侧


提前感谢。

对于IE7请将此代码复制到您的HTML文件中:(
Tag


FireFox中没有这个问题。您使用的是哪个版本的FireFox?如果您使用的是旧版本,您可以使用上面的
,根据您的版本,通过下面的链接,只针对FireFox:

<!--[if IE 7]>
<style type="text/css">
        .x-window-body-default .x-form-text {
                width: 215px !important;
        }
</style>
<![endif]-->