有人可以告诉我为什么我在Sencha Touch 2中的背景图像不显示? [英] Can someone tell me why my background image in Sencha Touch 2 isn't showing?

查看:103
本文介绍了有人可以告诉我为什么我在Sencha Touch 2中的背景图像不显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的MainView:

Here is my MainView:

Ext.define("Test.view.Main", {
extend: 'Ext.Panel',
config: {
cls: 'transp'
}
});

这是(我的app.css的相关部分):

Here is (the relevant part of) my app.css:

/* line 3, ../themes/stylesheets/sencha-touch/default/core/_reset.scss */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3,
h4, h5, h6, pre, code, form, fieldset, legend,
input, textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
}
.transp
{
   background-image: url(http://support.sencha.com/assets/images/logo-sencha.png);
   background-repeat: no-repeat;
   background-size: 100% 100%;
}

我知道它识别类,因为当我将不透明度设置为0时,灰色背景的主视图不显示。有人可以帮帮我吗?我完全失去了。

I know it recognizes the class because when I set the opacity to 0, the gray background of the mainview isnt displayed. Can someone please help me? I am at a total loss.

推荐答案

尝试使用!重要您的CSS属性。

Try using !important in your CSS property.

这篇关于有人可以告诉我为什么我在Sencha Touch 2中的背景图像不显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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