我想要拿出一些CSS來匹配我在我的iPhone/Android應用程序中的樣式。我有不透明的交替行顏色,所以我的自定義頁面背景流血。但是,我遇到的問題是我不希望表單元格中的文本也不透明。我希望文本的透明度爲1.0,背景爲不透明度= 0.12。看到它現在看起來像here。下面CSS3交替錶行不透明度影響文本以及背景
CSS:
html {
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
background-image: url(../images/[email protected]);
}
table {
background-color: transparent;
margin-left: 0px;
margin-right: 0px;
margin-top: 10;
height: 100%;
width: 100%;
border: 0;
border-collapse: collapse;
}
tr {
text-align: center;
padding: 0;
}
td {
font-family: verdana;
color: #ffffff;
text-shadow: 1px 1px 1px #77777777, 2px 2px 7px #ff0000;
padding: 0;
}
tr:nth-child(odd) { background-color:#003366; opacity:.12; filter:alpha(12); }
tr:nth-child(even) { background-color:#6a737d; opacity:.12; filter:alpha(12); }
是的,工作。謝謝。 – LiteWait