【发布时间】:2016-08-08 08:54:41
【问题描述】:
我实际上只是一个 html/css 人。
我想在我的页面上插入一个预订表格,但我有一个用于添加表格的自定义链接。该链接仅包含基本脚本,我被告知只需将其复制到我的 html 文件中。问题是我必须将它添加到 .php 文件中,当我这样做并重新加载我的页面时,它显示为空白。
我的 .php 文件中有一个基本 div 和一个用于调用图像的 div,然后是我的脚本。你能告诉我我的问题在哪里吗?
<div id="dine_oliver_cattermole" class="content_holder border"></div>
<div id="dine_oliver_cattermole" class="content_holder border">
<table class="chef_holder" width="100%">
<tr>
<td width="30%" align="left" class="dine_chef_photo"><img src="/wp-content/.." width="290" height="440" /></td>
<td width="40%" align="center" class="dine_chef_text">
<h2>The Tasting Room’s Guiding Principles:</h2>
<h3>-</h3>
<h3>Please allow 3½ hours for this menu.</h3><br />
<p>We do not have a dress code, you dress for the experience you.</p>
<p>Only open for dinner Tuesday</p>
</td>
</tr>
</table>
</div>
<!-- Start Bookatable Code -->
<script type="text/javascript" src="http://ajax...."></script>
<script type="text/javascript" src="https://bda...."></script>
<a id="target" href="#">Book Online</a>
<script type="text/javascript">
$(function () {
$("#target").lbuiDirect({
connectionid : "LITH",
popupWindow : {enabled : true}
});
});
</script>
<!-- End Bookatable Code -->
还可以使用他的代码,但显示为空白。
<!-- Start Bookatable Code -->
<script type="text/javascript" src="https://bda....."></script>
<script type="text/javascript">
LBDirect_Embed({
connectionid : "ZA-RES-THELIVINGROOMATLEQUARTIERFRANCAIS_283714:67970"
});
</script>
<!-- End Bookatable Code
<div id="dine_oliver_cattermole" class="content_holder border"></div>
<div id="dine_oliver_cattermole" class="content_holder border">
<table class="chef_holder" width="100%">
<tr>
<td width="30%" align="left" class="dine_chef_photo"><img src="/wp-content/.." width="290" height="440" /></td>
<td width="40%" align="center" class="dine_chef_text">
<h2>The Tasting Room’s Guiding Principles:</h2>
<h3>-</h3>
<h3>Please allow 3½ hours for this menu.</h3><br />
<p>We do not have a dress code, you dress for the experience you.</p>
<p>Only open for dinner Tuesday</p>
</td>
</tr>
【问题讨论】:
-
您是否在服务器上运行您的页面?
-
如果您不使用 php,只需调用它 .html 就可以了
-
那里没有什么要求它是一个 php 页面。我唯一的问题是页面上方是否包含 jQuery,以及我们可以看到的 2 个脚本 URL 是否仅在问题中被截断,或者它们是否像页面中的那样。跨度>
-
是的,我在服务器上运行页面,目前正在登台站点上工作。网站的所有文件都是 .php ,不能改变格式。
-
那么你需要回到那个人那里,告诉他们他们忘了告诉你什么,或者向他们索取这个脚本的文档
标签: javascript php jquery html css