Make background transperent and text not
Using opacity
I made my whole div
transparent but I want to mantain the font normal without opacity. I am unable to set a separate class or id to the content since it is dynamically created. I also cannot use the following: background: rgba();
{opacity : '0.3'}
Any suggestions?
For this you need to add a background image Transparent background.
then on that image when you add the content it will show up with opacity of 100%.
see this Opacity ,RGBA
Use rgba pattern
P{
color:#fff;
display:block;
background: rgba(0,0,0,0.60);
}
DEMO
If you cannot use background: rgba()
the other work around is to use two separate containers, one for the background and the other for text. Refer here https://stackoverflow.com/a/5135431/2965281
上一篇: 输出提交很多次
下一篇: 使背景transperent和文字不