📄 config_eng.xml
字号:
</ul>
</pre>
<p>Is an unordered list. Each item will have a bullet point in front of it. You
can nest unordered lists like this:</p>
%backtotop%
<pre>
<ul>
<li>item</li>
<li>item
<ul>
<li>subitem</li>
<li>subitem</li>
</ul>
</li>
<li>item</li>
<li>item</li>
</ul>
</pre>
<h4><a name="ol">Ordered lists:</a></h4>
<p>If you use <ol></ol> instead of <ul></ul> you'll have an ordered list, which
automatically numbers the items for you.</p>
%backtotop%
<h4><a name="dl">Definition list</a></h4>
<pre>
<dl>
<dt>title</dt>
<dd>Explanation</dd>
</dl>
</pre>
<p>A definition list should be used to define a list of words, like commonly
used terms in a web site. The <dl></dl> can get an attribute compact="compact"
which will display the explanation on the same line as the title, depending
on how long the title is.</p>
%backtotop%
<h3><a name="links">Links</a></h3>
<p>A link to another document is what makes the web what it is. To add a
link to a document, use the <a> tag.</p>
<pre>
<a href="index.php"
target="_blank"
title="see the code in action">Page 2</a>
</pre>
<p>The href attribute defines where the link points to. EasyCMS shows
you all the available files to point to in the dropdown box in the
tools panel. The target specifies if the page should be opened in
a new window, a named frame or the same window. If you want to
open the document in the same window, do not add this attribute.
To open the document in a new window, add a target with the
name "_blank". EasyCMS does that, when you check the
box for "new window". If you want to give more in-depth
information about the document "behind" this link,
you can add a "title" attribute with this data.</p>
<p>To point a link to a target within the same page, use a
hash sign "#" and the target's name as the href. To
define an anchor for such a page-internal link, add a link
with name instead of href:</p>
<pre>
<a href="#news">Skip to news</a>
<a name="news">News</a>
</pre>
<p>These "Skip links" are commonly used to allow
keyboard users to skip over parts of the page, like the
navigation, to avoid them having to tab through each link.</p>
%backtotop%
<h3><a name="textchanges">Text changes:</a></h3>
<h4><a name="strong">Strong/Bold</a></h4>
<pre><strong></strong></pre>
<p>Defines a part of a text as strong, the browser displays it in bold letters,
screen readers increase the volume.</p>
%backtotop%
<h4><a name="emphasized">Emphasized/Italic</a></h4>
<pre><em></em></pre>
<p>Emphasizes a part of a text, this is a semantically correct replacement for
<i></i> which simply showed text in italics.</p>
%backtotop%
<h4><a name="acronyms">Acronyms</a></h4>
<pre><acronym></acronym></pre>
<p>can be used to define acronyms like "USA" and add their meaning in a
title attribute: <acronym title="United States of America">USA</acronym>.</p>
%backtotop%
<h4><a name="pref">Preformatted text</a></h4>
<pre><pre></pre></pre>
<p>Displays a text as preformatted. Texts enclosed in this tag are displayed
as they are, with linebreaks, spaces and tabs, much like a text editor
like textpad displays them.</p>
%backtotop%
<h3><a name="tables">Tables</a></h3>
<p>Tables are data constructs, but in HTML they are abused as layout hacks.
A data table looks like this</p>
<pre>
<table summary="A demo of a data table">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Content 1_1</td>
<td>Content 1_2</td>
</tr>
<tr>
<td>Content 2_1</td>
<td>Content 2_2</td>
</tr>
</table>
</pre>
<p>Each <tr></tr> defines one table row. <th></th> Are table headers, these
define what the following table cells are. <td></td> are the table cells.</p>
<p>The summary="" in the table tag allows screen readers to summarise the table
for blind users and to skip the table.</p>
<p>Layout tables are more complex, do not use <th></th> for them</p>
<pre><table>
<tr>
<td>Content 1_1</td>
<td>Content 1_2</td>
</tr>
<tr>
<td>Content 2_1</td>
<td>Content 2_2</td>
</tr>
</table></pre>
<p>Table can have the following attributes:</p>
<dl>
<dt>width="x|x%"</dt>
<dd>The overall table width in pixels "400" or percentage "40%".</dd>
<dt>border="x"</dt><dd>the width of the table border.</dd>
<dt>cellpadding="x"</dt><dd>the space around the content of each cell</dd>
<dt>cellspacing="x"</dt><dd>the space in between the cells.</dd>
<dt>bgcolor="#xxxxxx"</dt><dd>the background colour in hexadecimal
triplets.</dd>
</dl>
<p>Cells can have these attributes:</p>
<dl>
<dt>align="left|center|right"</dt><dd>The text alignment in this
cell</dd>
<dt>valign="top|middle|bottom"</dt><dd>The vertical text alignment
in this cell</dd>
<dt>bgcolor="#xxxxxx"</dt><dd>The background colour of the cell in
hexadecimal triplets</dd>
<dt>colspan="x"</dt><dd>the column span of this cell, delete other
cells when you use this</dd>
<dt>rowspan="x"</dt><dd>the row span of this cell, delete this cell
in other rows.</dd>
<dt>width="x"</dt><dd>The width in pixels. This can be defined only
once in the table, the
cells in the same place on other rows will be as big as the biggest one.</dd>
</dl>
<p>Complex example:</p>
<pre>
<table border="0" cellspacing="1"
width="300" cellpadding="4" bgcolor="#000000">
<tr>
<td colspan="3" bgcolor="#cccccc">Big cell</td>
</tr>
<tr>
<td width="50" bgcolor="#cc99ff"
rowspan="2">Cell 1_1<br />(and 1_2)</td>
<td width="125" bgcolor="#336699">Cell 1_2</td>
<td width="125" bgcolor="#6699cc">Cell 1_3</td>
</tr>
<tr>
<td bgcolor="#003399">Cell 2_2</td>
<td bgcolor="#0033cc">Cell 2_3</td>
</tr>
</table>
</pre>
%backtotop%
<h3><a name="tables">Images</a></h3>
<p>Images are added to an HTML document via the img tag. Images should be considerably
small in file size. To optimise an image for the web, safe it in one of the
following formats (Compression instructions are for Adobe ImageReady): </p>
<p>
<strong>JPEG (.jpg,.jpeg,.jpe)</strong> for images with loads of colours and
non-geometrical outlines - like photos. JPEG compresses an image by leaving
pixels out and rasterising the image into smaller rectangles. JPEGs that were
compressed too high will show "artifacts", blurry parts of the image
with the rectangles visible. For a result good enough for web use, take a
compression of 70%. JPEGs can be saved as "progressive", meaning their
quality improves gradually while loading. This gives a more immediate
impression of what the image is about.</p>
<p><strong>GIF (.gif)</strong> for images that need animation or transparency
or for pictures with few colours, large sections of one colour and geometrical
outlines. GIF compresses an image by reducing the number of colours and run
length encoding the file. Run length encoding means compressing the image
much like ZIP does. GIF files can have different ways of determining the
colour palette, set them differently and compare the resulting file size.
Another option to reduce file size is the "lossy" option, which
replaces seldomly used colours with others nearby. It is quite safe to set
this option to 10. GIF is the perfect format for screenshots of applications.
Most of the time 64 colours are sufficient to render nice results.</p>
<p><strong>PNG (.png)</strong> combines the best of both worlds, but is not
properly supported by all browsers to date. It also is a format free to use
(and generate) while GIF is copyrighted.</p>
<p>To add the image to the HTML document, use the <img> tag:</p>
<pre><img src="basket.gif"
width="20" height="20"
alt="waste basket"
title="delete this item"
border="0"
align="middle"/></pre>
<p>Images can have the following attributes:</p>
<dl>
<dt>src="path/to/filename"</dt>
<dd>This is the only mandatory attribute for an img tag. It tells the browser
which image to display.</dd>
<dt>width="x|x%" height="x|x%"</dt>
<dd>The dimensions of the image. These are not mandatory, but help faster
rendering and avoid the layout to "jump" once the images are loaded.
You can also resize an image via HTML by using different width and height
values than the real ones; the quality of that is not really nice though.
Creating "thumbnails" (smaller preview pictures) by changing the
dimensions in HTML is a bad idea, thumbnails should not only be smaller in
dimension, but also in filesize.</dd>
<dt>border="x"</dt>
<dd>the width of the image border. If an image is
surrounded by a link, it will normally show a border in the link colour, you
can surpress this by adding a border="0" attribute to the image.</dd>
<dt>alt="x"</dt>
<dd>The text replacement for this image. This will be
displayed when the image can't be found or loaded, text browsers as well as
screen readers rely on this attribute. If your image is "eyecandy / screen
furniture" only and does not have any context meaning and is no functional
element, keep this attribute empty.</dd>
<dt>title="x"</dt><dd>Allows for a description of the image. You can
use up to 1024 characters here. Make sure to add a meaningfull title to each
image that conveys a lot of information to help blind users.</dd>
<dt>longdesc="explanation.html"</dt>
<dd>Longdesc allows to link the image to a HTML document explaining its
meaning in detail. This attribute is only supported by screen readers.</dd>
<dt>align="left|right|top|middle|bottom"</dt>
<dd>Align positions the image relative to the text next to it. If you add an
align="left" the image will be on the left and the page's text next to
it. Top,middle and bottom align the image vertically. There is no way in HTML
to center an image with text to the left and right of it. This is a deprecated
attribute, if you use XHTML instead of HTML align the image via Cascading Style
Sheets instead.</dd>
</dl>
%backtotop%
</help>
</config>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -