Sets or retrieves whether the browser automatically performs wordwrap.
dhtml语法
HTML | <ELEMENT NOWRAP
... >
|
---|
Scripting | object.noWrap [ = bWrap ] |
---|
DHTML可能的值
bWrap | Boolean that
specifies or receives one of the following values.false | Default. Browser automatically wraps the text. | true | Browser does not wrap the text. |
|
The property is read/write.
The property has a default value of
false.
Remarks
Care should be taken when the noWrap property is used in conjunction with the width attribute of table or td elements.
wordwrap still occurs in a td element that has its width attribute set to a value smaller than the unwrapped content of the cell, even if the nowrap property is set to true. therefore, the width attribute takes precedence over the nowrap property in this scenario.
if a td element has its nowrap set to true and the width attribute of its table element is set to a smaller dimension than the rendered content of the td element, wordwrap does not occur. in this case, the nowrap setting takes precedence over the width attribute.
是否符合公共标准
This property is deprecated in
HTML and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To