- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试做一些应该非常简单的事情。
我目前有一个 php 表单,它接受字段条目并将它们简单地放置在输出页面上的 html 样式表中。该页面的样式为零,因为 CSS 做到了这一点,并且在输出表格后,我在 Chrome 中查看源代码,然后将其复制并粘贴到我的电子邮件模板中,以在我的电子邮件中发送排名表。
现在,我让其他人执行相同的过程,但他们使用的是 Safari 而不是 Chrome。可以实现相同的目的,但我想结合一个更好的解决方案,而不是试图向他们解释这个过程。
在显示表格(我用它查看源代码)的同一页面上,是否有办法显示 html 源代码本身?这样就无需在页面渲染后手动查看源代码了?
我使用的确切代码是:
<?php
echo"
<!-- NIGHTLY RANKING 7:00 PM -->
";
echo "
<table class=\"nightly_ranking\">
<tbody>
<tr>
<th class=\"table_center\" colspan=\"3\">".$_POST['field_venue']." ".$_POST['field_date']." 7:00 PM Game</th>
</tr>
<tr>
<td class=\"table_center table_alternate\"><b>Place</b></td>
<td class=\"table_center table_alternate\"><b>Player Name</b></td>
<td class=\"table_center table_alternate\"><b>Points</b></td>
</tr>";
if(!empty($_POST['field_N1_2']))
{
echo
"<tr>
<td class=\"table_center\">1st</td>
<td class=\"table_center\">".$_POST['field_N1_2']."</td>
<td class=\"table_center\">".$_POST['field_N1_3']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_6']))
{
echo
"<tr>
<td class=\"table_center\">2nd</td>
<td class=\"table_center\">".$_POST['field_N1_6']."</td>
<td class=\"table_center\">".$_POST['field_N1_7']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_10']))
{
echo
"<tr>
<td class=\"table_center\">3rd</td>
<td class=\"table_center\">".$_POST['field_N1_10']."</td>
<td class=\"table_center\">".$_POST['field_N1_11']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_14']))
{
echo
"<tr>
<td class=\"table_center\">4th</td>
<td class=\"table_center\">".$_POST['field_N1_14']."</td>
<td class=\"table_center\">".$_POST['field_N1_15']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_18']))
{
echo
"<tr>
<td class=\"table_center\">5th</td>
<td class=\"table_center\">".$_POST['field_N1_18']."</td>
<td class=\"table_center\">".$_POST['field_N1_19']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_22']))
{
echo
"<tr>
<td class=\"table_center\">6th</td>
<td class=\"table_center\">".$_POST['field_N1_22']."</td>
<td class=\"table_center\">".$_POST['field_N1_23']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_26']))
{
echo
"<tr>
<td class=\"table_center\">7th</td>
<td class=\"table_center\">".$_POST['field_N1_26']."</td>
<td class=\"table_center\">".$_POST['field_N1_27']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_30']))
{
echo
"<tr>
<td class=\"table_center\">8th</td>
<td class=\"table_center\">".$_POST['field_N1_30']."</td>
<td class=\"table_center\">".$_POST['field_N1_31']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_34']))
{
echo
"<tr>
<td class=\"table_center\">9th</td>
<td class=\"table_center\">".$_POST['field_N1_34']."</td>
<td class=\"table_center\">".$_POST['field_N1_35']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_38']))
{
echo
"<tr>
<td class=\"table_center\">10th</td>
<td class=\"table_center\">".$_POST['field_N1_38']."</td>
<td class=\"table_center\">".$_POST['field_N1_39']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_42']))
{
echo
"<tr>
<td class=\"table_center\">11th</td>
<td class=\"table_center\">".$_POST['field_N1_42']."</td>
<td class=\"table_center\">".$_POST['field_N1_43']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_46']))
{
echo
"<tr>
<td class=\"table_center\">12th</td>
<td class=\"table_center\">".$_POST['field_N1_46']."</td>
<td class=\"table_center\">".$_POST['field_N1_47']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_50']))
{
echo
"<tr>
<td class=\"table_center\">13th</td>
<td class=\"table_center\">".$_POST['field_N1_50']."</td>
<td class=\"table_center\">".$_POST['field_N1_51']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_54']))
{
echo
"<tr>
<td class=\"table_center\">14th</td>
<td class=\"table_center\">".$_POST['field_N1_54']."</td>
<td class=\"table_center\">".$_POST['field_N1_55']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_58']))
{
echo
"<tr>
<td class=\"table_center\">15th</td>
<td class=\"table_center\">".$_POST['field_N1_58']."</td>
<td class=\"table_center\">".$_POST['field_N1_59']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_62']))
{
echo
"<tr>
<td class=\"table_center\">16th</td>
<td class=\"table_center\">".$_POST['field_N1_62']."</td>
<td class=\"table_center\">".$_POST['field_N1_63']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_66']))
{
echo
"<tr>
<td class=\"table_center\">17th</td>
<td class=\"table_center\">".$_POST['field_N1_66']."</td>
<td class=\"table_center\">".$_POST['field_N1_67']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_70']))
{
echo
"<tr>
<td class=\"table_center\">18th</td>
<td class=\"table_center\">".$_POST['field_N1_70']."</td>
<td class=\"table_center\">".$_POST['field_N1_71']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_74']))
{
echo
"<tr>
<td class=\"table_center\">19th</td>
<td class=\"table_center\">".$_POST['field_N1_74']."</td>
<td class=\"table_center\">".$_POST['field_N1_75']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_78']))
{
echo
"<tr>
<td class=\"table_center\">20th</td>
<td class=\"table_center\">".$_POST['field_N1_78']."</td>
<td class=\"table_center\">".$_POST['field_N1_79']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_82']))
{
echo
"<tr>
<td class=\"table_center\">21st</td>
<td class=\"table_center\">".$_POST['field_N1_82']."</td>
<td class=\"table_center\">".$_POST['field_N1_83']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_86']))
{
echo
"<tr>
<td class=\"table_center\">22nd</td>
<td class=\"table_center\">".$_POST['field_N1_86']."</td>
<td class=\"table_center\">".$_POST['field_N1_87']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_90']))
{
echo
"<tr>
<td class=\"table_center\">23rd</td>
<td class=\"table_center\">".$_POST['field_N1_90']."</td>
<td class=\"table_center\">".$_POST['field_N1_91']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_94']))
{
echo
"<tr>
<td class=\"table_center\">24th</td>
<td class=\"table_center\">".$_POST['field_N1_94']."</td>
<td class=\"table_center\">".$_POST['field_N1_95']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_98']))
{
echo
"<tr>
<td class=\"table_center\">25th</td>
<td class=\"table_center\">".$_POST['field_N1_98']."</td>
<td class=\"table_center\">".$_POST['field_N1_99']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_102']))
{
echo
"<tr>
<td class=\"table_center\">26th</td>
<td class=\"table_center\">".$_POST['field_N1_102']."</td>
<td class=\"table_center\">".$_POST['field_N1_103']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_106']))
{
echo
"<tr>
<td class=\"table_center\">27th</td>
<td class=\"table_center\">".$_POST['field_N1_106']."</td>
<td class=\"table_center\">".$_POST['field_N1_107']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_110']))
{
echo
"<tr>
<td class=\"table_center\">28th</td>
<td class=\"table_center\">".$_POST['field_N1_110']."</td>
<td class=\"table_center\">".$_POST['field_N1_111']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_114']))
{
echo
"<tr>
<td class=\"table_center\">29th</td>
<td class=\"table_center\">".$_POST['field_N1_114']."</td>
<td class=\"table_center\">".$_POST['field_N1_115']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_118']))
{
echo
"<tr>
<td class=\"table_center\">30th</td>
<td class=\"table_center\">".$_POST['field_N1_118']."</td>
<td class=\"table_center\">".$_POST['field_N1_119']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_122']))
{
echo
"<tr>
<td class=\"table_center\">31st</td>
<td class=\"table_center\">".$_POST['field_N1_122']."</td>
<td class=\"table_center\">".$_POST['field_N1_123']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_126']))
{
echo
"<tr>
<td class=\"table_center\">32nd</td>
<td class=\"table_center\">".$_POST['field_N1_126']."</td>
<td class=\"table_center\">".$_POST['field_N1_127']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_130']))
{
echo
"<tr>
<td class=\"table_center\">33rd</td>
<td class=\"table_center\">".$_POST['field_N1_130']."</td>
<td class=\"table_center\">".$_POST['field_N1_131']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_134']))
{
echo
"<tr>
<td class=\"table_center\">34th</td>
<td class=\"table_center\">".$_POST['field_N1_134']."</td>
<td class=\"table_center\">".$_POST['field_N1_135']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_138']))
{
echo
"<tr>
<td class=\"table_center\">35th</td>
<td class=\"table_center\">".$_POST['field_N1_138']."</td>
<td class=\"table_center\">".$_POST['field_N1_139']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_142']))
{
echo
"<tr>
<td class=\"table_center\">36th</td>
<td class=\"table_center\">".$_POST['field_N1_142']."</td>
<td class=\"table_center\">".$_POST['field_N1_143']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_146']))
{
echo
"<tr>
<td class=\"table_center\">37th</td>
<td class=\"table_center\">".$_POST['field_N1_146']."</td>
<td class=\"table_center\">".$_POST['field_N1_147']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_150']))
{
echo
"<tr>
<td class=\"table_center\">38th</td>
<td class=\"table_center\">".$_POST['field_N1_150']."</td>
<td class=\"table_center\">".$_POST['field_N1_151']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_154']))
{
echo
"<tr>
<td class=\"table_center\">39th</td>
<td class=\"table_center\">".$_POST['field_N1_154']."</td>
<td class=\"table_center\">".$_POST['field_N1_155']."</td>
</tr>
";
}
if(!empty($_POST['field_N1_158']))
{
echo
"<tr>
<td class=\"table_center\">40th</td>
<td class=\"table_center\">".$_POST['field_N1_158']."</td>
<td class=\"table_center\">".$_POST['field_N1_159']."</td>
</tr>
";
}
echo "
</tbody>
</table>
<!-- /NIGHTLY RANKING 7:00 PM -->
<!-- NIGHTLY RANKING 9:30 PM -->
";
echo "
<table class=\"nightly_ranking\">
<tbody>
<tr>
<th class=\"table_center\" colspan=\"3\">".$_POST['field_venue']." ".$_POST['field_date']." 9:30 PM Game</th>
</tr>
<tr>
<td class=\"table_center table_N2_alternate\"><b>Place</b></td>
<td class=\"table_center table_N2_alternate\"><b>Player Name</b></td>
<td class=\"table_center table_N2_alternate\"><b>Points</b></td>
</tr>";
if(!empty($_POST['field_N2_2']))
{
echo
"<tr>
<td class=\"table_center\">1st</td>
<td class=\"table_center\">".$_POST['field_N2_2']."</td>
<td class=\"table_center\">".$_POST['field_N2_3']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_6']))
{
echo
"<tr>
<td class=\"table_center\">2nd</td>
<td class=\"table_center\">".$_POST['field_N2_6']."</td>
<td class=\"table_center\">".$_POST['field_N2_7']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_10']))
{
echo
"<tr>
<td class=\"table_center\">3rd</td>
<td class=\"table_center\">".$_POST['field_N2_10']."</td>
<td class=\"table_center\">".$_POST['field_N2_11']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_14']))
{
echo
"<tr>
<td class=\"table_center\">4th</td>
<td class=\"table_center\">".$_POST['field_N2_14']."</td>
<td class=\"table_center\">".$_POST['field_N2_15']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_18']))
{
echo
"<tr>
<td class=\"table_center\">5th</td>
<td class=\"table_center\">".$_POST['field_N2_18']."</td>
<td class=\"table_center\">".$_POST['field_N2_19']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_22']))
{
echo
"<tr>
<td class=\"table_center\">6th</td>
<td class=\"table_center\">".$_POST['field_N2_22']."</td>
<td class=\"table_center\">".$_POST['field_N2_23']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_26']))
{
echo
"<tr>
<td class=\"table_center\">7th</td>
<td class=\"table_center\">".$_POST['field_N2_26']."</td>
<td class=\"table_center\">".$_POST['field_N2_27']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_30']))
{
echo
"<tr>
<td class=\"table_center\">8th</td>
<td class=\"table_center\">".$_POST['field_N2_30']."</td>
<td class=\"table_center\">".$_POST['field_N2_31']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_34']))
{
echo
"<tr>
<td class=\"table_center\">9th</td>
<td class=\"table_center\">".$_POST['field_N2_34']."</td>
<td class=\"table_center\">".$_POST['field_N2_35']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_38']))
{
echo
"<tr>
<td class=\"table_center\">10th</td>
<td class=\"table_center\">".$_POST['field_N2_38']."</td>
<td class=\"table_center\">".$_POST['field_N2_39']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_42']))
{
echo
"<tr>
<td class=\"table_center\">11th</td>
<td class=\"table_center\">".$_POST['field_N2_42']."</td>
<td class=\"table_center\">".$_POST['field_N2_43']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_46']))
{
echo
"<tr>
<td class=\"table_center\">12th</td>
<td class=\"table_center\">".$_POST['field_N2_46']."</td>
<td class=\"table_center\">".$_POST['field_N2_47']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_50']))
{
echo
"<tr>
<td class=\"table_center\">13th</td>
<td class=\"table_center\">".$_POST['field_N2_50']."</td>
<td class=\"table_center\">".$_POST['field_N2_51']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_54']))
{
echo
"<tr>
<td class=\"table_center\">14th</td>
<td class=\"table_center\">".$_POST['field_N2_54']."</td>
<td class=\"table_center\">".$_POST['field_N2_55']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_58']))
{
echo
"<tr>
<td class=\"table_center\">15th</td>
<td class=\"table_center\">".$_POST['field_N2_58']."</td>
<td class=\"table_center\">".$_POST['field_N2_59']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_62']))
{
echo
"<tr>
<td class=\"table_center\">16th</td>
<td class=\"table_center\">".$_POST['field_N2_62']."</td>
<td class=\"table_center\">".$_POST['field_N2_63']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_66']))
{
echo
"<tr>
<td class=\"table_center\">17th</td>
<td class=\"table_center\">".$_POST['field_N2_66']."</td>
<td class=\"table_center\">".$_POST['field_N2_67']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_70']))
{
echo
"<tr>
<td class=\"table_center\">18th</td>
<td class=\"table_center\">".$_POST['field_N2_70']."</td>
<td class=\"table_center\">".$_POST['field_N2_71']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_74']))
{
echo
"<tr>
<td class=\"table_center\">19th</td>
<td class=\"table_center\">".$_POST['field_N2_74']."</td>
<td class=\"table_center\">".$_POST['field_N2_75']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_78']))
{
echo
"<tr>
<td class=\"table_center\">20th</td>
<td class=\"table_center\">".$_POST['field_N2_78']."</td>
<td class=\"table_center\">".$_POST['field_N2_79']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_82']))
{
echo
"<tr>
<td class=\"table_center\">21st</td>
<td class=\"table_center\">".$_POST['field_N2_82']."</td>
<td class=\"table_center\">".$_POST['field_N2_83']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_86']))
{
echo
"<tr>
<td class=\"table_center\">22nd</td>
<td class=\"table_center\">".$_POST['field_N2_86']."</td>
<td class=\"table_center\">".$_POST['field_N2_87']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_90']))
{
echo
"<tr>
<td class=\"table_center\">23rd</td>
<td class=\"table_center\">".$_POST['field_N2_90']."</td>
<td class=\"table_center\">".$_POST['field_N2_91']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_94']))
{
echo
"<tr>
<td class=\"table_center\">24th</td>
<td class=\"table_center\">".$_POST['field_N2_94']."</td>
<td class=\"table_center\">".$_POST['field_N2_95']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_98']))
{
echo
"<tr>
<td class=\"table_center\">25th</td>
<td class=\"table_center\">".$_POST['field_N2_98']."</td>
<td class=\"table_center\">".$_POST['field_N2_99']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_102']))
{
echo
"<tr>
<td class=\"table_center\">26th</td>
<td class=\"table_center\">".$_POST['field_N2_102']."</td>
<td class=\"table_center\">".$_POST['field_N2_103']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_106']))
{
echo
"<tr>
<td class=\"table_center\">27th</td>
<td class=\"table_center\">".$_POST['field_N2_106']."</td>
<td class=\"table_center\">".$_POST['field_N2_107']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_110']))
{
echo
"<tr>
<td class=\"table_center\">28th</td>
<td class=\"table_center\">".$_POST['field_N2_110']."</td>
<td class=\"table_center\">".$_POST['field_N2_111']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_114']))
{
echo
"<tr>
<td class=\"table_center\">29th</td>
<td class=\"table_center\">".$_POST['field_N2_114']."</td>
<td class=\"table_center\">".$_POST['field_N2_115']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_118']))
{
echo
"<tr>
<td class=\"table_center\">30th</td>
<td class=\"table_center\">".$_POST['field_N2_118']."</td>
<td class=\"table_center\">".$_POST['field_N2_119']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_122']))
{
echo
"<tr>
<td class=\"table_center\">31st</td>
<td class=\"table_center\">".$_POST['field_N2_122']."</td>
<td class=\"table_center\">".$_POST['field_N2_123']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_126']))
{
echo
"<tr>
<td class=\"table_center\">32nd</td>
<td class=\"table_center\">".$_POST['field_N2_126']."</td>
<td class=\"table_center\">".$_POST['field_N2_127']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_130']))
{
echo
"<tr>
<td class=\"table_center\">33rd</td>
<td class=\"table_center\">".$_POST['field_N2_130']."</td>
<td class=\"table_center\">".$_POST['field_N2_131']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_134']))
{
echo
"<tr>
<td class=\"table_center\">34th</td>
<td class=\"table_center\">".$_POST['field_N2_134']."</td>
<td class=\"table_center\">".$_POST['field_N2_135']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_138']))
{
echo
"<tr>
<td class=\"table_center\">35th</td>
<td class=\"table_center\">".$_POST['field_N2_138']."</td>
<td class=\"table_center\">".$_POST['field_N2_139']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_142']))
{
echo
"<tr>
<td class=\"table_center\">36th</td>
<td class=\"table_center\">".$_POST['field_N2_142']."</td>
<td class=\"table_center\">".$_POST['field_N2_143']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_146']))
{
echo
"<tr>
<td class=\"table_center\">37th</td>
<td class=\"table_center\">".$_POST['field_N2_146']."</td>
<td class=\"table_center\">".$_POST['field_N2_147']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_150']))
{
echo
"<tr>
<td class=\"table_center\">38th</td>
<td class=\"table_center\">".$_POST['field_N2_150']."</td>
<td class=\"table_center\">".$_POST['field_N2_151']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_154']))
{
echo
"<tr>
<td class=\"table_center\">39th</td>
<td class=\"table_center\">".$_POST['field_N2_154']."</td>
<td class=\"table_center\">".$_POST['field_N2_155']."</td>
</tr>
";
}
if(!empty($_POST['field_N2_158']))
{
echo
"<tr>
<td class=\"table_center\">40th</td>
<td class=\"table_center\">".$_POST['field_N2_158']."</td>
<td class=\"table_center\">".$_POST['field_N2_159']."</td>
</tr>
";
}
echo "
</tbody>
</table>
<!-- /NIGHTLY RANKING 9:30 PM -->
;"
?>
最佳答案
一种常见的方法是使用 HTML 实体转义要显示的 HTML,然后通过回显/打印来呈现它。
这是一个简短的 PHP 示例。这被包裹在 <pre>
中标记显示为 preformatted text这对于格式化目的很有用。
<pre><?php
$table = '<table><tr><td>Cell 1</td><td>Cell 2</td></tr></table>';
echo htmlentities($table);
?></pre>
如果你想要语法高亮,你可以添加一个像highlight.js这样的库.
关于javascript - 通过 PHP 或 Java 显示 HTML 源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32036905/
我正在编写一个 Java 应用程序,该应用程序检查网页的源代码,并在满足源代码中的条件时在我的默认浏览器中向我显示该网页。我通过以下方式获取源代码: String source = getUrlSou
数周以来,我一直在为 Android 上的蓝牙项目而苦苦挣扎。有谁知道我可以去哪里查看 Google 用于使其蓝牙配对和连接逻辑正常工作的实际代码? 我浏览了所有的文档、BluetoothChat 应
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 4 年前。
Android 源代码有多个目录,其中包含针对不同设备的代码。此外,在特定目录中,存在显示不同分支和标签的路径。举个例子,在“android/platform/external/iptables”目录
在哪里可以找到 SQLMembershipProvider (.NET2.0) 的源代码? 是可用的么? 最佳答案 源代码已经发布。 See ScottGu's blog for further de
我只想知道如何下载特定版本的 Android 源代码。我已经尝试过以下命令 repo init -u https://android.googlesource.com/platform/manifes
我想看看OpenCL框架是如何实现的。我发现的只是已经编译好的可供下载的库。 当然,OpenCL 可以有许多不同的实现,但我想看看其中的一个来了解它是如何完成的。 为了确保我自己清楚,OpenCL 框
latex 源代码列表应该是什么样子才能产生像已知书籍中那样的输出,例如 Spring 框架的输出?我尝试过使用 latex 列表包,但无法生成看起来像下面一样好的东西。因此,我主要对生成类似以下示例
PHP 是用 C 语言编写的吗?我在哪里可以在线找到 PHP 源代码而无需下载全部内容? 最佳答案 PHP 函数是用 C 编写的 - 您可以在 lxr.php.net 找到可浏览的源代码. 例如:ht
我正在使用Elasticsearch OSS的官方Docker镜像(docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4),似乎完全无法使用s
我试图在Cython中同时编译C和C++源代码。这是我当前的设置: -setup.py from distutils.core import setup from Cython.Build impor
好吧,事情是这样的:你们所有人可能都在想同样的事情:您可以使用 driver.getPageSource(); 这部分是正确的。唯一的问题是源代码以一种相当奇怪的方式编译,所有代码都在其中 \&quo
由于 TwoLineListItem 自 API 17 起已被弃用,因此我已采取措施将其替换为自定义 XML 和 ViewHolder。但是,我真的希望我的应用程序看起来与使用 TwoLineList
要从 HttpURLConnection 获取 InputStream,我们的代码如下 urlConnection.getInputStream(); 如果InputStream是一个Abstract
我刚刚开始学习更多关于 C/C++ 的知识,我正在使用 Visual Studio 2013 来管理代码。 我正在使用 Tobii EyeX 眼睛注视系统的项目要求我能够稍微调整此代码,但是我不明白如
我在按钮上有一个IBAction,其中包含以下代码,我尝试使用它来检索 UIWebView 的源代码: - (IBAction)loadInAWebView:(id)sender { [self
我正在 asp.net 中创建一个网站,我只是想知道有什么方法可以使用 JavaScript 从图像生成调色板吗?类似于 1) http://www.cssdrive.com/imagepalette
有人可以分享 WinKill() from AutoIt 的源代码吗? ? 我想知道它如何处理消息(是/否/取消)以确保它得到正确处理。我想用它来清理桌面上的意外弹出窗口。 最佳答案 正如我们在下面的
我的问题与 Opencv 的源代码有关。在我看来不同的平台the Opencv website提供不同的代码结构。我只是想知道是否有可能为所有不同的平台提供一个源代码。使用相同的源代码,我可以针对不同
这个问题在这里已经有了答案: Convert Python program to C/C++ code? [closed] (8 个答案) 关闭 3 年前。 我一直在努力寻找一种方法将 .py 源文
我是一名优秀的程序员,十分优秀!