如何为两个表格单元格制作两种不同的样式,其中一个单元格位于另一个表格内?
我有两种CSS样式:
table.style1 { /* any styles */} table.style1 td { /* any styles */}
和
table.style2 { /* any styles */} table.style2 td { /* any styles */ }
<table class="style1"> <tr> <td> <table class="style2"> <tr><td>bla bla<td></tr> </table> </td> <tr> </table>
结果是 – 所有< td>第二个表格(带有style2)的表格单元格与style1 …!
当桌子里面有桌子时,如何制作两个不同的css窗框?
解决方法
试试这个代码.我相信它运作正常.
table.style1 { /* any styles */} table.style1 td { /* any styles */}
和
table.style1 table.style2 { /* any styles */} table.style1 table.style2 td { /* any styles */}
原文地址:https://www.jb51.cc/css/215144.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。