From da78a9e329e272dedb2400b79a3bdeebff387d47 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:17 -0500 Subject: initial commit --- files/ko/web/html/element/tr/index.html | 217 ++++++++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 files/ko/web/html/element/tr/index.html (limited to 'files/ko/web/html/element/tr') diff --git a/files/ko/web/html/element/tr/index.html b/files/ko/web/html/element/tr/index.html new file mode 100644 index 0000000000..116e664557 --- /dev/null +++ b/files/ko/web/html/element/tr/index.html @@ -0,0 +1,217 @@ +--- +title: +slug: Web/HTML/Element/tr +translation_of: Web/HTML/Element/tr +--- +

개요

+ +

The HTML Table Row Element (<tr>) defines a row of cells in a table. Those can be a mix of {{HTMLElement("td")}} and {{HTMLElement("th")}} elements.

+ +

사용 문맥

+ + + + + + + + + + + + + + + + + + + + + + + + +
콘텐츠 범주None.
허용되는 콘텐츠Zero or more {{HTMLElement("td")}} or {{HTMLElement("th")}} elements, or a mix of them
태그 생략The start tag is mandatory. The end tag may be omitted if the {{HTMLElement("tr")}} element is immediately followed by a {{HTMLElement("tr")}} element, or if the parent table group ({{HTMLElement("thead")}}, {{HTMLElement("tbody")}} or {{HTMLElement("tfoot")}}) element doesn't have any more content.
허용되는 부모 요소A {{HTMLElement("table")}}, {{HTMLElement("thead")}}, {{HTMLElement("tbody")}} or {{HTMLElement("tfoot")}} element.
Normative documentHTML, "The tr element"
+ +

속성

+ +

This element includes the global attributes.

+ +
+
{{htmlattrdef("align")}} {{deprecatedGeneric("inline","html4.01")}}, {{obsoleteGeneric("inline","html5")}}
+
This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are: +
    +
  • left, aligning the content to the left of the cells
  • +
  • center, centering the content in the cells
  • +
  • right, aligning the content to the right of the cells
  • +
  • justify, widening the spaces in the textual content so that the content is justified in the cells
  • +
  • char, aligning the textual content on a special character with a minimal offset, defined by the {{htmlattrxref("char", "tr")}} and {{htmlattrxref("charoff", "tr")}} attributes {{unimplemented_inline("2212")}}.
  • +
+ +

If this attribute is not set, the parent node's value is inherited.

+ +
참고: Do not use this attribute as it is obsolete (not supported) in the latest standard. + +
    +
  • To achieve the same effect as the left, center, right or justify values, use the CSS {{cssxref("text-align")}} property on it.
  • +
  • To achieve the same effect as the char value, in CSS3, you can use the value of the {{htmlattrxref("char", "tr")}} as the value of the {{cssxref("text-align")}} property {{unimplemented_inline}}.
  • +
+
+
+
+ +
+
{{htmlattrdef("bgcolor")}} {{deprecatedGeneric("inline","html4.01")}}, {{obsoleteGeneric("inline","html5")}}
+
This attribute defines the background color of each cell of the row. It can be either an #RRGGBB code or an SVG color keyword. +
Usage note: the {{HTMLElement("tr")}} element should be styled using CSS. To give a similar effect to the bgcolor attribute, use the CSS property {{cssxref("background-color")}}.
+
+
+ +
+
{{htmlattrdef("char")}} {{deprecatedGeneric("inline","html4.01")}}, {{obsoleteGeneric("inline","html5")}}
+
This attribute is used to set the character to align the cells in a column on. Typical values for this include a period (.) when attempting to align numbers or monetary values. If {{htmlattrxref("align", "tr")}} is not set to char, this attribute is ignored. +
참고: Do not use this attribute as it is obsolete (and not supported) in the latest standard. To achieve the same effect as the {{htmlattrxref("char", "tr")}}, in CSS3, you can use the character set using the {{htmlattrxref("char", "tr")}} attribute as the value of the {{cssxref("text-align")}} property {{unimplemented_inline}}.
+
+
+ +
+
{{htmlattrdef("charoff")}} {{deprecatedGeneric("inline","html4.01")}}, {{obsoleteGeneric("inline","html5")}}
+
This attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char attribute. +
참고: Do not use this attribute as it is obsolete (and not supported) in the latest standard.
+
+
+ +
+
{{htmlattrdef("valign")}} {{deprecatedGeneric("inline","html4.01")}}, {{obsoleteGeneric("inline","html5")}}
+
This attribute specifies the vertical alignment of the text within each row of cells of the table header. Possible values for this attribute are: +
    +
  • baseline, which will put the text as close to the bottom of the cell as it is possible, but align it on the baseline of the characters instead of the bottom of them. If characters are all of the size, this has the same effect as bottom.
  • +
  • bottom, which will put the text as close to the bottom of the cell as it is possible;
  • +
  • middle, which will center the text in the cell;
  • +
  • and top, which will put the text as close to the top of the cell as it is possible.
  • +
+ +
Note: Do not use this attribute as it is obsolete (and not supported) in the latest standard: instead set the CSS {{cssxref("vertical-align")}} property on it.
+
+
+ +

DOM 인터페이스

+ +

This element implements the {{domxref("HTMLTableRowElement")}} interface.

+ +

예제

+ +

See {{HTMLElement("table")}} for examples on <tr>.

+ +

브라우저 호환성

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
기능ChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support1.0{{CompatGeckoDesktop("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
align/valign 속성1.0{{CompatNo}} {{bug("915")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
char/charoff 속성1.0{{CompatNo}} {{bug("2212")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
bgcolor 속성 {{Non-standard_inline}}{{CompatNo}}{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
기능AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatGeckoMobile("1.0")}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
align/valign 속성{{CompatUnknown}}{{CompatNo}} {{bug("915")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
char/charoff 속성{{CompatUnknown}}{{CompatNo}} {{bug("2212")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
bgcolor 속성 {{Non-standard_inline}}{{CompatNo}}{{CompatNo}}{{CompatVersionUnknown}}{{CompatNo}}{{CompatNo}}
+
+ +

같이 보기

+ + + +

{{HTMLRef}}

-- cgit v1.2.3-54-g00ecf