HTML CSS Reference/CSS Attributes and Javascript Style Properties/textDecorationNone
Версия от 09:21, 26 мая 2010; (обсуждение)
Содержание
"textDecorationNone" Example
<html>
<body>
<p id="myT">Text sample.</p>
<input type="button"
value="decoration:lineThrough"
onclick="myT.style.textDecorationLineThrough="true"">
<input type="button"
value="decoration:none"
onclick="myT.style.textDecorationNone="true"">
</body>
</html>
"textDecorationNone" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <address> |
| |<b> <big> |
| |<blockquote> <body> |
| |<button> <caption> |
| |<center> <cite> |
| |<code> <col> |
| |<colgroup> currentStyle |
| |<custom> <dd> |
| |defaults <dfn> |
| |<dir> <div> |
| |<dl> <dt> |
| |<em> <fieldset> |
| |<form> <hn> |
| |<html> <i> |
| |<inputtype="button"> <input type="file"> |
| |<input type="password"> <input type="radio"> |
| |<input type="reset"> <input type="submit"> |
| |<input type="text"> <isindex> |
| |<kbd> <label> |
| |<legend> <li> |
| |<listing> <marquee> |
| |<menu> <ol> |
| |<p> <pre> |
| |runtimeStyle <s> |
| |<samp> <select> |
| |<small> <span> |
| |<strike> <strong> |
| |style <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<tr> <tt> |
| |<u> <ul> |
| |<var> <xmp> |
+----------------+--------------------------------------------------------------+
"textDecorationNone" Possible Values
Possible Values
true
false.
"textDecorationNone" Syntax and Note
Note:
JavaScript-only style properties.
Controls the text decorative.
Syntax:
elementID.style.textDecorationElement = "value"
document.all.elementID.style.textDecorationElement = "value"