三大主机谁更受蟑螂青睐 PS4主机里竟有小强窝

Baseline Widely available
百度 本周购房者在看哪些房子,这些房子有什么“格外的魅力”吸引大家在这么多楼盘项目中对它趋之若鹜,接下来,TOP10榜单告诉你,本周又有哪些楼盘冲出重围或者继续卫冕榜单。

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

Die padding-block-start CSS Eigenschaft definiert das logische Start-Padding eines Elements im Blocksatz, das je nach Schreibmodus des Elements, Richtung und Textausrichtung auf ein physisches Padding abgebildet wird.

Probieren Sie es aus

padding-block-start: 20px;
writing-mode: horizontal-tb;
padding-block-start: 20px;
writing-mode: vertical-rl;
padding-block-start: 5em;
writing-mode: horizontal-tb;
padding-block-start: 5em;
writing-mode: vertical-lr;
<section id="default-example">
  <div class="transition-all" id="example-element">
    <div class="box">
      Far out in the uncharted backwaters of the unfashionable end of the
      western spiral arm of the Galaxy lies a small unregarded yellow sun.
    </div>
  </div>
</section>
#example-element {
  border: 10px solid #ffc129;
  overflow: hidden;
  text-align: left;
}

.box {
  border: dashed 1px;
  unicode-bidi: bidi-override;
}

Syntax

css
/* <length> values */
padding-block-start: 10px; /* An absolute length */
padding-block-start: 1em; /* A length relative to the text size */

/* <percentage> value */
padding-block-start: 5%; /* A padding relative to the block container's width */

/* Global values */
padding-block-start: inherit;
padding-block-start: initial;
padding-block-start: revert;
padding-block-start: revert-layer;
padding-block-start: unset;

Werte

<length>

Die Gr??e des Paddings als fester Wert. Muss positiv sein.

<percentage>

Die Gr??e des Paddings als Prozentsatz, relativ zur Inline-Gr??e (Breite in einer horizontalen Sprache) des enth?ltenden Blocks. Muss positiv sein.

Beschreibung

Die padding-block-start Eigenschaft nimmt die gleichen Werte wie physische Padding-Eigenschaften wie padding-top an. Sie kann jedoch je nach den eingestellten Werten für writing-mode, direction, und text-orientation gleichwertig zu padding-top, padding-bottom, padding-left, oder padding-right sein.

Sie steht in Beziehung zu padding-block-end, padding-inline-start, und padding-inline-end, die die anderen Padding-Werte des Elements definieren.

Formale Definition

Anfangswert0
Anwendbar aufalle Elemente au?er table-row-group, table-header-group, table-footer-group, table-row, table-column-group und table-column
VererbtNein
Prozentwertelogische Breite des beinhaltenden Blocks
Berechneter Wertals <length>
AnimationstypL?ngenangabe

Formale Syntax

padding-block-start = 
<'padding-top'>

<padding-top> =
<length-percentage [0,∞]>

<length-percentage> =
<length> |
<percentage>

Beispiele

Start-Padding für vertikalen Text setzen

HTML

html
<div>
  <p class="exampleText">Example text</p>
</div>

CSS

css
div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}

.exampleText {
  writing-mode: vertical-lr;
  padding-block-start: 20px;
  background-color: #c8c800;
}

Ergebnis

Spezifikationen

Specification
CSS Logical Properties and Values Level 1
# padding-properties

Browser-Kompatibilit?t

Siehe auch