BORDERSTYLE Attribute | borderStyle参数属性
| DHTML文档教程 |
Sets or retrieves the style set for the content border within the HTML Application (HTA) window.
dhtml语法
HTML | <HTA:APPLICATION BORDERSTYLE
= sStyle... >
|
---|
Scripting | [ sStyle = ] HTA:APPLICATION.borderStyle |
---|
DHTML可能的值
sStyle | Stringthat specifies one of the following values: normal | Default. Normal border. | complex | Raised and sunken border. | raised | Raised 3-D border. | static | 3-D border typically used for windows that do not accept user input. | sunken | Sunken 3-D border. |
|
The property is read-only.
The property has a default value of
normal.
Remarks
Note The borderStyle property is read-only; however, the BORDERSTYLE attribute can be used to set the initial value.
All HTAs have two adjacent borders: one for the content of a window, and one for the application window. The borderStyle property sets the style for the content border, while the border property controls the application window border.
DHTML代码范例
This example uses the borderStyle property to apply a normal border around the content of a window.
<HTML>
<HEAD>
<TITLE>Hello, World!</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="sampleApp"
CAPTION="yes"
BORDER="thin"
BORDERSTYLE="normal"
>
<SCRIPT>
alert("borderStyle = " + oHTA.borderStyle);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
是否符合公共标准
There is no public standard that applies to this property.
Applies To
更多语法参考
Introduction to HTML Applications (HTAs)