.gif)
Sets or retrieves the pairs of strings to be used as quotes in generated content.
Syntax
| HTML |
{ quotes : sValue }
|
|---|
| Scripting | [ sValue = ] object.style.quotes [ = v ] |
|---|
Possible Values
| sValue | String that
specifies or receives one of the following values.[<string> <string>]+- The "open-quote" and "close-quote" values are taken from the specified list of pairs of quotation marks.
none- The "open-quote" and "close-quote" values produce no quotation marks.
|
The property is read/write
for all objects except the following, for which it is read-only:
currentStyle.
The property has no default value. The Cascading Style Sheets (CSS) attribute is
not inherited.
Remarks
IE8 mode rendering is required.
Pairs of strings are required if the value is not none.
Example
The following example shows how the quotes element works in HTML.
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<title>QUOTES Example</title>
<style type="text/css">
/* Define quote characters */
q { quotes: '"' '"' }
/* Define pseudo-class triggers */
q:before { content: open-quote }
q:after { content: close-quote }
</style>
</head>
<body>
<p><q>When I die, I'm donating my body to science fiction.</q><em> ~ Stephen Wright</em></p>
</body>
</html>
Standards Information
This property is defined in
Cascading Style Sheets (CSS), Level 2 Revision 1 (CSS2.1)
.
Applies To
|
currentStyle,
runtimeStyle,
style,
A,
ABBR,
ADDRESS,
B,
BIG,
BLOCKQUOTE,
BODY,
BUTTON,
CAPTION,
CENTER,
CITE,
CODE,
COL,
COLGROUP,
DD,
DFN,
DIR,
DIV,
DL,
DT,
EM,
FIELDSET,
FORM,
hn,
HTML,
I,
IMG,
INPUT type=button,
INPUT type=checkbox,
INPUT type=file,
INPUT type=image,
INPUT type=password,
INPUT type=radio,
INPUT type=reset,
INPUT type=submit,
INPUT type=text,
KBD,
LABEL,
LEGEND,
LI,
LISTING,
MARQUEE,
MENU,
NOBR,
OL,
P,
PRE,
S,
SAMP,
SMALL,
SPAN,
STRIKE,
STRONG,
SUB,
SUP,
TABLE,
TBODY,
TD,
TEXTAREA,
TFOOT,
TH,
THEAD,
TR,
TT,
U,
UL,
VAR,
XMP,
CSSCurrentStyleDeclaration Constructor,
CSSRuleStyleDeclaration Constructor,
CSSStyleDeclaration Constructor |