-moz-float-edge

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Thuộc tính CSS không chuẩn -moz-float-edge chỉ định xem các thuộc tính chiều cao và chiều rộng của phần tử có bao gồm độ dày lề, viền hay đệm không.

Cú pháp

css
/* Keyword values */
-moz-float-edge: content-box;
-moz-float-edge: margin-box;

/* Global values */
-moz-float-edge: inherit;
-moz-float-edge: initial;
-moz-float-edge: unset;

Giá trị

content-box

Các thuộc tính chiều cao và chiều rộng bao gồm nội dung, nhưng không bao gồm phần đệm, viền hoặc lề.

margin-box

Các thuộc tính chiều cao và chiều rộng bao gồm nội dung, phần đệm, viền và lề.

Định nghĩa chính thức

Initial valuecontent-box
Applies toall elements
Inheritedno
Computed valueas specified
Animation typediscrete

Cú pháp chính thức

-moz-float-edge = 
content-box |
margin-box

Ví dụ

HTML

html
<div class="box">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>

CSS

css
.box {
  display: block;
  height: 5px;
  margin: 0.5em auto;
  color: gray;
  -moz-float-edge: margin-box;
  box-sizing: border-box;
}

Kết quả

Thông số kỹ thuật

Không thuộc về bất kỳ tiêu chuẩn nào.

Tương thích trình duyệt

Xem thêm