如果我插入一个html文件,它的代码将被包装在para标签中!我不想要这个 [英] If I INSERT an html FILE its code gets wrapped it in para tags!! I don't want this
问题描述
我正在创建一个dwt,它将由相对缺乏经验的(表达式)用户使用(使用Expresion web 3)。
I am creating a dwt, that will be used by a relatively inexperienced (to Expression) user (using Expresion web 3).
当他们在可编辑的内容中添加内容时我需要的区域是能够添加超链接。
但超链接需要具有特殊格式 (例如,必须在<>< a>中)< spans> ;.
When they add content in the editable areas I need then to be able to add hyperlinks.
but the hyperlinks need to have a special format (eg must have <spans> within the <a>).
我尝试创建一个仅包含示例代码的html文件,即
< ; a href =" http://www.xxx.com">< span class =" ; linkStyle"> xxx< / span>< / a>
但是当我插入文件时(使用INSERT FILE),它会被段落标记包裹!!
I tried creating an html file that just contained the example code i.e.
<a href="http://www.xxx.com"><span class="linkStyle">xxx</span></a>
but when I insert the file (using INSERT FILE) it gets wrapped in paragraph tags !!
是否可以更改此行为?
是否有更好的方式
Can this behaviour be changed?
Is there a better ways
注意。 < span>在< a>内部需要,因为它是(众多)电子邮件客户端的html,而不是网页。
Note. The <span> is needed inside <a>s as it's html for (numerous) email clients, not web pages.
谢谢
推荐答案
我认为没有理由使用跨度。为什么你不能简单地使用< a href ="无论什么" clas =" linkStyle"> link text< / a>
I see no reason to use a span. Why can't you simply use <a href="whatever" clas="linkStyle">link text </a>
这篇关于如果我插入一个html文件,它的代码将被包装在para标签中!我不想要这个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!