Jump to content
  • 0

Прозрачность элемента


popoff17
 Share

Question

Доброго времени суток, господа!

стоит такая задача: есть три таблицы, состоящие каждая из одной ячейки и вложены друг в друга. Необходимо сделать вторую таблицу полупрозрачной, а третью, вложенную в нее - непрозрачной.

Прочитал теорию про opacity, но что то у меня не получилось:

<style>

.semi {

opacity: 0.5;

}

.semik {

opacity: 1;

}

</style>

<table bgcolor="006FFF" width=50% height=50%><tr><td align="center" >

<table bgcolor="red" width=50% height=50% class="semi"><tr><td align="center">

<table bgcolor="green" width=50% height=50% class="semik"><tr><td>

Эта таблица должна быть непрозрачной.

</td></tr></table>

</td></tr></table>

</td></tr></table>

т.е. синяя таблица - непрозрачна, таблица с красным фоном - прозрачна, а таблицу с зеленым фоном надо сделать опять непрозрачной.

Как такое реализовать?

Идея такая, что у меня есть цветастый фон, а на его фоне текст,который порой сливается с фоном, и чтобы его выделить хочу подставить под него полупрозрачный фон. Скажите, если можно по другому. спасибо заранее.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy