【发布时间】:2013-08-24 22:33:09
【问题描述】:
我正在为 FireFox 操作系统制作应用程序,我想将按钮背景不透明度设置为 0.5,文本不透明度设置为 1,但它不起作用。检查css:
.button{
height:40px;
width:180px;
border-radius: 100px 100px 100px 100px;
border: 1px solid #FF9924;
display:inline-block;
background-color:#FF9924;
padding-top:5px;
opacity:0.5;
}
h1{
padding: 5px 5px 5px 5px;
text-align:center;
font-size:20px;
font-family: firstone;
opacity:1.0;
}
在页面上:
<div class="menu">
<div class="button"><h1>Start the fight</h1></div>
</div>
【问题讨论】:
-
那是opacity and alpha的区别