HTML - 在 <!-- InstanceEndEditable --> 中编辑代码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4212158/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
HTML - editing code within <!-- InstanceEndEditable -->
提问by knookie
Windows 7 32-bit Dreamweaver 8
Windows 7 32 位 Dreamweaver 8
I am new to HTML & Dreamweaver.
我是 HTML 和 Dreamweaver 的新手。
I am using Dreamweaver to edit a website originally put together by someone else.
我正在使用 Dreamweaver 编辑最初由其他人组装的网站。
On each website page is some footer code. I need to edit this code and indeed can do it on every page except one - which is greyed out and i can't edit it?
在每个网站页面上都有一些页脚代码。我需要编辑此代码,并且确实可以在除一页之外的每一页上进行编辑 - 这是灰色的,我无法编辑它?
Is there some way i can edit this code? I do not really understand why it is greyed out only on this page? My HTML is very limited and i am currently learning.
有什么方法可以编辑此代码吗?我真的不明白为什么它只在这个页面上显示为灰色?我的 HTML 非常有限,我目前正在学习。
The difference between the page i can't edit and the others seems to be the InstanceEndEditable and InstanceEnd parts
我无法编辑的页面和其他页面之间的区别似乎是 InstanceEndEditable 和 InstanceEnd 部分
Any advice greatly appreciated
非常感谢任何建议
Here is the code i cannot edit...(code preview looks a bit odd hope it's visible - i've had to remove some of the hyperlinks in it as i have less than 10 posts here)
这是我无法编辑的代码......(代码预览看起来有点奇怪,希望它是可见的 - 我不得不删除其中的一些超链接,因为我在这里的帖子少于 10 个)
<!-- InstanceEndEditable -->
</div>
<!--$$/content$$-->
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
</div>
<div class="Footer">
<p class="White">Policy</a>|
<p class="White">
<div id="simplegallery2" style="text-align:center; width:65px; height:39px; margin:0 auto;"></div>
<p class="L8_White">...............................................................................................................................................................</p>
<p><strong>Crystal Clear Development Co., Ltd</strong></p>
<p><strong>Crystal Clear Vessels Co., Ltd</strong></p>
<p> 9/115 Moo. 9 , Chaofa Rd., Chalong, Muang, Phuket 83130 Tel/Fax: +66 (0) 76 383 306 Mobile : +66 828 004718, 801 427457</p>
<p> E-mail: <a href="mailto: l Website:
<p>Copyright ? 2009 Crystal Clear Thailand. All rights reserved. Web design by Alexander Evengroen &
</div>
</body>
<script type="text/javascript"> var gaJsHost =
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script>
<script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-7136030-27"); pageTracker._trackPageview(); }
catch(err) {}</script>
<!-- InstanceEnd --></html>
采纳答案by Kranu
You can't edit code outside of the <!--InstanceEndEditable-->
sections. You have to modify this from the original template (dwt file). If you want, you can go in a text editor and change it outside of Dreamweaver, but if the DWT file ever gets updated (not a concern if you do not have the DWT file), the footer will be replaced.
您不能在<!--InstanceEndEditable-->
部分之外编辑代码。您必须从原始模板(dwt 文件)中修改它。如果需要,您可以进入文本编辑器并在 Dreamweaver 之外更改它,但是如果 DWT 文件得到更新(如果您没有 DWT 文件,则不必担心),页脚将被替换。
The location of the DWT file is often listed at the very beginning of the document. Scroll to the top and you will see a bunch of dreamweaver tags that list information on the template.
DWT 文件的位置通常列在文档的最开头。滚动到顶部,您将看到一堆 Dreamweaver 标签,其中列出了有关模板的信息。
回答by user3370102
I got it guys finally. do this.
我终于明白了伙计们。做这个。
Your page is apparently linked to a template. If you no longer want to use the template, you can use the Dreamweaver command(in the top bar) Modify/Templates/Detach from Template to unlock the page.
您的页面显然已链接到模板。如果您不想再使用模板,您可以使用 Dreamweaver 命令(在顶部栏中)修改/模板/从模板分离来解锁页面。
got this method from thispage.
从这个页面得到这个方法。
回答by Ahmad
there is one more solution for that..
还有一个解决方案..
1st copy and paste the full code in Notepad..
after that skip <!--InstanceEndEditable-->
this part and paste rest of the code in DW..
第一次将完整代码复制并粘贴到记事本中……然后跳过 <!--InstanceEndEditable-->
这一部分并将其余代码粘贴到 DW 中。
then you will be able to edit that code..
然后您将能够编辑该代码..
回答by Edgar
You can′t edit that code directly because it's a template. You must edit the template in order to edit that area. Look in your Templates folder the corresponding template for this page.
您不能直接编辑该代码,因为它是一个模板。您必须编辑模板才能编辑该区域。在您的模板文件夹中查看此页面的相应模板。
Second way: edit that code outside Dreamweaver, but be aware that any change applied to the template (the .dwt file) will not affect this page anymore.
第二种方法:在 Dreamweaver 之外编辑该代码,但请注意,应用于模板(.dwt 文件)的任何更改都不会再影响此页面。