【问题标题】:Adding tags and styles when rendering templates in Adobe Contribute CS5在 Adob​​e Contribute CS5 中渲染模板时添加标签和样式
【发布时间】:2010-11-09 17:14:26
【问题描述】:

我有几个使用 Adob​​e Dreamweaver CS5 创建的模板。如果我通过 Dreamweaver 基于这些模板创建页面,它们会完美呈现。它们还在使用 Adob​​e Contribute CS4 创建的页面中完美呈现。

但是,我的用户已经升级到 Contribute CS5,奇怪的是,Contribute 在页面的不可编辑部分向呈现的页面添加标签。

例如,模板中的代码如下:

<div id="nav-wrapper">
<ul id="topnav">
    <li>
        <a href="/index.html" class="nav_home"></a>
    </li>
    <li>
        <a href="../about/index.html" class="nav_about">About us</a>
        <div class="sub">
            <ul>
                <li><a href="../about/team.html">Team</a></li>
                <li><a href="../about/invest.html">Investors</a></li>

...etc

在 Dreamweaver 中用于创建页面时呈现完全相同,但 Contribute CS5 将其更改为:

<p style="margin-top: 0; margin-bottom: 0;">&nbsp;</p>
<div id="nav-wrapper">
<ul id="topnav" style="margin-bottom: 0">
    <li>
        <a href="/index.html" class="nav_home"></a>
    </li>
    <li>
        <a href="../../about/index.html" class="nav_about">About us</a>
        <p style="margin-top: 0; margin-bottom: 0;">&nbsp;</p>
        <div class="sub">
            <ul style="margin-bottom: 0">
                <li><a href="../../about/team.html">Team</a></li>
                <li><a href="../../about/invest.html">Investors</a></li>

注意添加了两个 &lt;p style="margin-top: 0; margin-bottom: 0;"&gt;&amp;nbsp;&lt;/p&gt; 标记,以及将 style="margin-bottom: 0" 添加到 &lt;ul&gt; 标记。

这是 Contribute 的一个已知问题吗?如果是这样,我该如何防止它发生?

【问题讨论】:

  • 他们应该将其重新命名为Adobe CodeMangler

标签: html tags flash-cs5 adobe-contribute


【解决方案1】:

在站点管理对话框中修改您的段落设置。

请参阅"Paragraph Spacing Options in Adobe Contribute"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多