Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.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
Html iOS应用程序中的标题从中间向左移动_Html_Ios_Css_Iphone - Fatal编程技术网

Html iOS应用程序中的标题从中间向左移动

Html iOS应用程序中的标题从中间向左移动,html,ios,css,iphone,Html,Ios,Css,Iphone,在iPhone上,我的应用程序中的标题从中间向左移动,但当我在浏览器中打开应用程序时,标题会直接从中间向下移动。如何修复它? 这里是我的html代码 Найдено Загрузка 矿井css代码`/*主背景 ---------------------------------------*/ .main后台{-webkit转换:所有0.5s;-webkit转换:translateX-50px;top:44px;} .按钮顶部{/溢出:自动;页边距顶部:-10px;/} .在右侧{位置:相

在iPhone上,我的应用程序中的标题从中间向左移动,但当我在浏览器中打开应用程序时,标题会直接从中间向下移动。如何修复它? 这里是我的html代码

Найдено Загрузка

矿井css代码`/*主背景 ---------------------------------------*/

.main后台{-webkit转换:所有0.5s;-webkit转换:translateX-50px;top:44px;} .按钮顶部{/溢出:自动;页边距顶部:-10px;/} .在右侧{位置:相对;高度:55px;}

.bar.navigation-bar.center.bar项.bar标题包装{指针事件:无;} .bar.navigation-bar.center.bar项.bar标题{高度:44px;线条高度:44px;左侧:0px;位置:绝对;}`


您是否尝试过更改/删除显示left:0px的css?这基本上是将它放在尽可能左边的div中。

我会覆盖html的特定行,并将其写在主CSS之后。而不是使用div中文本居中的正常方式

在div中居中显示文本的步骤

.bar-center {
   margin-left: auto;
   margin-right: auto;
   width: 70%;

}

我们需要给定样式的css代码。@JoseMagana,我添加了css代码。我试图更改它,但没有尝试删除左侧的问题:0px;位置:绝对位置;还应检查div定位本身: