Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTML-表格:一个tr对另一个tr_Html_Css_Html Table_Opacity - Fatal编程技术网

HTML-表格:一个tr对另一个tr

HTML-表格:一个tr对另一个tr,html,css,html-table,opacity,Html,Css,Html Table,Opacity,我想要一个tr标签和另一个tr标签 HTML 一些文本 我希望文本位于背景的顶部div 我不确定你在找什么,但如果你想在第一个背景上显示你的文本,请看一看 $(文档).ready(函数(){ $(“.wrap_textbox”).clone().appendTo(“#top”); }); table tr td table tr td.wrap_文本框{显示:无;} 一些文本 您的问题非常令人困惑,但为什么不使用将上面的文字这样放置: 一些文本 更多文本 您可以将一个表嵌套在另一个表

我想要一个
tr
标签和另一个
tr
标签

HTML


一些文本
我希望文本位于背景的顶部
div


我不确定你在找什么,但如果你想在第一个背景上显示你的文本,请看一看

$(文档).ready(函数(){
$(“.wrap_textbox”).clone().appendTo(“#top”);
});
table tr td table tr td.wrap_文本框{显示:无;}

一些文本

您的问题非常令人困惑,但为什么不使用
将上面的文字这样放置:


一些文本
更多文本

您可以将一个表嵌套在另一个表中。。。这就是你想在这里做的…是的。。。但我有透明的背景和不透明度。里面有文字。但我希望文本是背景的顶部。我无法使用div,因为HTML电子邮件尝试删除
opacity:0.5,并将背景从
更改为
rgba(250,75,0,5)
。将背景颜色指定为rgba应该只在背景上设置不透明度,而不是为整个元素及其子元素设置不透明度的
opacity
属性。您的问题相当混乱,一个tr对另一个tr?你能澄清一下你有什么问题吗?是的。我希望使用
表格
将文本置于背景图像之上。我已为背景图像设置了不透明度。我无法使用第三方库。因为我只能有HTML,CSS(内联)。我有其他背景的文本和这个代码表tr td table tr td.wrap_textbox{display:none;}我正在制作HTML电子邮件,所以不能使用第三方库你可以尝试javascript克隆功能我不能使用javascript。因为一些电子邮件引擎不支持Javascript、外部库、Flash等
<table width="600" align="center">
   <tbody>
      <tr>
         <td height="10" align="center" style="background-color:#f1f1f1;"></td>
      </tr>
      <tr>
         <td valign="top" align="center" style=" opacity: 0.5; background: #fa4b00 no-repeat;">
            <table width="600" border="0" align="center">
               <tbody>
                  <tr>
                     <td>
                        <table width="600" align="center">
                           <tbody>
                              <tr>
                                 <td valign="top" align="center" id="1" style="color: #FFFFFF;font-family: 'Montserrat', sans-serif; line-height: 30px; letter-spacing:0.5px; text-align:center; padding-bottom: 0px; padding-left: 0px; padding-top: 60px;">
                                    <span class="wrap_textbox" style="font-weight: lighter; font-size: 26px;"> Some Text</span>
                                 </td>
                              </tr>
                           </tbody>
                        </table>
                     </td>
                  </tr>
               </tbody>
            </table>
         </td>
      </tr>
   </tbody>
</table>