正如 Qt 文档中所述,我已经使用图标编辑器创建了图标文件。然后我在我的 .pro 文件中插入了以下行。
ICON = 3D_Modell.icns
Run Code Online (Sandbox Code Playgroud)
编译时我收到以下错误:
No rule to make target `../3D', needed by `3D_Modell.app/Contents/Resources/3D_Modell.icns'
Run Code Online (Sandbox Code Playgroud)
内容/资源文件夹在哪里?我到底应该把 icns 文件放在哪里?我已将其放入我的项目以及所有 cpp 和 h 文件所在的文件夹中。
我希望在透明框中有不透明的文字.这是一个代码示例:
HTML:
<div id="Transparent_Box">
<div class="text">
<h1>Some opaque text</h1>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
#Transparent_box {
url(../images/header-bg.png);
background:url(../images/header-bg.png) repeat-x\0/;
background-position:center bottom, left top;
background-repeat:repeat-x;
overflow:hidden;
background-color:#FFF;
opacity: 0.6;
filter: alpha(opacity=60);
}
.text {
float:left;
margin-top:30px;
width:490px;
margin-left:20px;
opacity: 1;
filter: alpha(opacity=100);
}
.text h1 {
font-weight:900;
color:#FFF;
line-height:34px;
margin-top:8px;
opacity: 1;
filter: alpha(opacity=100);
}
Run Code Online (Sandbox Code Playgroud)
由于继承,文本总是出现transluscent.有没有办法在我的透明盒子上得到一个漂亮的不透明文字?
谢谢,这正是它...我现在还添加了一个透明的背景.png看起来像这样:
background-image:url(../images/header-shadow.png), url(../images/header-bg.png);
background:url(../images/header-bg.png) repeat-x\0/;
background-position:center bottom, left top;
background-repeat:repeat-x;
background-color: rgba(0,0,0,0)
Run Code Online (Sandbox Code Playgroud)
这应该在IE8及以下版本下工作.