linebreak_line-break

line-break

This is an experimental technology

Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

The line-break CSS property is used to specify how (or if) to break lines.

Applies to

all elements

Media

visual

Animation type

discrete

Canonical order

the unique non-ambiguous order defined by the formal grammar

Syntax /* Keyword values */

line-break: auto;

line-break: loose;

line-break: normal;

line-break: strict;

/* Global values */

line-break: inherit;

line-break: initial;

line-break: unset;

Values auto break text using the default line break rule. loose break text using the line break rule that the line is shorter like a newspaper. normal break text using the common line break rule. strict break text using the stringent line break rule.

Formal syntax auto | loose | normal | strict

Specifications

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari

Basic support 1.0 (Yes) No support[1] 5.5[2] (Yes) (Yes)

Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile

Basic support (Yes) 18.0 (Yes) No support[1] ? ? (Yes)

[1] Gecko does not implement this feature yet. See bug 1011369.

[2] Internet Explorer 8 introduced -ms-line-break as a synonym for line-break. Don't use the -ms- prefix.

© 2005–2017 Mozilla Developer Network and individual contributors.

Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.

https://developer.mozilla.org/en-US/docs/Web/CSS/line-break

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值