当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > stylesheet

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 stylesheet


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 353 ::
收藏到网摘: n/a

The <stylesheet> element defines a stylesheet for the application.
<stylesheet>元素用于为应用程序指定一个样式表文件。

If the <stylesheet> element is defined as a child of the <appml> element, it will be the DEFAULT stylesheet for the application.
如果<stylesheet>元素是作为<appml>元素的子元素定义的,它将成为应用程序默认的样式表。

To define a stylesheet particular for the HTML report, HTML list, or HTML form, add a <stylesheet> element as a child of <htmlreport>, <htmllist>, or <htmlform>.
可以通过添加<htmlreport>、<htmllist>或<htmlform>的子元素来为HTML报告、HTML列表、HTML表单定义一个特殊的样式表。

If the <stylesheet> element is omitted in either <htmlreport>, <htmllist>, or <htmlform>, the application will use the default stylesheet under the <appml> element.
如果在<htmlreport>、<htmllist>或<htmlform>中忽略了<stylesheet>元素,那么应用程序将会在<appml>元素下使用默认的样式表。

Specify a default stylesheet for the HTML report and list:
在HTML列表中使用一个默认的样式表:

<?xml version="1.0" ?>
<appml>
<stylesheet>theme.css</stylesheet>
<database>
<connection>music_db</connection>
<sql>SELECT Title,Artist,Year FROM cd_catalog</sql>
</database>
<htmlreport />
<htmllist />
</appml>

Use a particular stylesheet in HTML report:
在HTML列表中使用一个特殊的样式表:

<?xml version="1.0" ?>
<appml>
<stylesheet>theme.css</stylesheet>
<database>
<connection>music_db</connection>
<sql>SELECT Title,Artist,Year FROM cd_catalog</sql>
</database>
<htmlreport>
<stylesheet>report_theme.css</stylesheet> </htmlreport>
</appml>

Use a particular stylesheet in HTML list:
在HTML列表中使用一个特殊的样式表:

<?xml version="1.0" ?>
<appml>
<stylesheet>theme.css</stylesheet>
<database>
<connection>music_db</connection>
<maintable>cd_catalog</maintable>
<keyfield>cdid</keyfield>
<sql>SELECT Title,Artist,Year FROM cd_catalog</sql>
</database>
<htmllist>
<stylesheet>list_theme.css</stylesheet> </htmllist>
</appml>


评论 (0) All

登陆 | 还没注册?