小编Ori*_*ion的帖子

无法隐藏标题栏钛合金

我在使用Alloy MVC的Titanium Appcelerator中遇到了问题.此问题包含以下内容(请参见图片)

在此输入图像描述

我无法删除找到应用名称和徽标的黑条.我在设备上运行应用程序(谷歌Nexus,没有模拟器)

我已尝试以下方法删除此内容:

XML:

<Alloy>
    <Window>
    </Window>
</Alloy>
Run Code Online (Sandbox Code Playgroud)

TSS:

"Window":
{
    navBarHidden:true,
    fullscreen:true,
    backgroundColor:"Orange",
    orientationModes:[Ti.UI.PORTRAIT],
}
Run Code Online (Sandbox Code Playgroud)

TiApp.XML:

<statusbar-style>default</statusbar-style>
<statusbar-hidden>true</statusbar-hidden>
<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>
Run Code Online (Sandbox Code Playgroud)

但是这些选项中没有一个能够隐藏这个黑条.在iOS模拟器中,它仅通过将属性设置fullscreen为true来删除导航栏

还有其他选择可以解决这个问题吗?提前致谢!

android titanium appcelerator titanium-alloy

3
推荐指数
1
解决办法
6326
查看次数

漂浮不起作用

我目前正在开展一个"网上商店"的项目.我正在创建一个带有float:left;属性的产品面板, 但是当我循环产品时,它们并不是彼此相邻而是在前一个产品之下.我错过了什么?

码:

$web_string = "
<div class='product'>
<div class='image'>
    <img class='image' src='iphone.jpg' alt='iPhone' height='100%' width='100%' />
</div>
<div class='under'>
    <div class='info'>
    <ul>
        <li>iPhone</li>
        <li>iOS</li>
        <li>16 GB</li>
        <li>Black & White</li>
    </ul>
    <a href='#'>more info...</a>
    </div>
    <div class='extra'>
    <p>price: 588</p>
    <button>put in cart!</button>
    </div>
<div>
</div>";
Run Code Online (Sandbox Code Playgroud)

CSS:

#wrapper{
    width: 100%;
    height:100%;
    background-color: blue;

}

.product
{

    float:left;
    width:250px;
    height:250px;
    background-color:red;

}

.onder
{
    height:50%;
}

.afbeelding
{
    background-color: green;
}

.info
{
    background-color:yellow;
    float:left;
    width:50%;
    height:100%;
}

.extra
{ …
Run Code Online (Sandbox Code Playgroud)

html css php

1
推荐指数
1
解决办法
86
查看次数

标签 统计

android ×1

appcelerator ×1

css ×1

html ×1

php ×1

titanium ×1

titanium-alloy ×1