我正在尝试使用包含Web Developer Tools的Eclipse Ganymedes 3.4.1版编辑phpbb HTML模板文件.
这些模板文件包含带有模板变量标记的HTML标记,格式为{ variable_name }.现在,当试图打开这样的文件时,Eclipse会尝试验证这些模板变量标记.
例如模板包含
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
Run Code Online (Sandbox Code Playgroud)
在编辑器主体上打开Eclipse后显示:
Unsupported Character Body
Character encoding "{S_CONTENT_ENCODING}" is not supported by this platform.
<button>Set encoding...</button>
Run Code Online (Sandbox Code Playgroud)
如何使用WTP解决这个问题,还是有更好的编辑器用于模板编辑?
假设我有一排有三列 - 左侧和右侧有一些按钮,中间宽度为流体.
如果中间列的内容到达中间列的区域,则应隐藏溢出.
这个解决方案适用于Firefox,但Opera和IE6的输出差别很大.
<div style="width:/fluid/">
<input type="image" src="img1.png" style="margin: 4px 0 0 5px; float: left;"/>
<input type="image" src="img2.png" style="margin: 4px 5px 0 0; float: right;"/>
<input type="image" src="img3.png" style="margin: 4px 5px 0 0; float: right;"/>
<input type="image" src="img4.png" style="margin: 4px 5px 0 0; float: right;"/>
<div style="margin: 0pt 68px 0pt 26px;">
<p style="margin: 0; cursor: pointer; overflow: hidden;">abcdefghijklmnopqrstuvxy</p>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
在Firefox上,所有这些按预期显示在一行上 - 左边一个按钮,右边三个按钮,内容的可见部分取决于div容器的宽度.
在Opera上 - 在下一行继续部分不适合一行的内容.
在IE6上 - 按钮位于第一行,内容显示在下一行全长.