The max-lines property limits the content of a block to a maximum number of lines before being cut off and can create a line clamping effect when combined
The CSS max-lines property is used to limit a block content to a maximum number of lines before being cropped out. The max-lines property can create a clamping effect with the block-overflow property. This property is in progress. Let’s remember that the line-clamp property is a ...
max-lines: none | <integer> block-ellipsis: none | auto | <string> continue: auto | discard ...
max-lines: none | <integer> block-ellipsis: none | auto | <string> continue: auto | discard ...
Support via Patreon Become a caniuse Patron to support the site and disable ads for only $1/month! or Log in Site links Home Feature index Browser usage table Feature suggestion list Caniuse data on GitHub Legend Green = Supported Red = Not supported Greenish yellow = Partial ...
max-content关键字,表示以网格项的最大的内容来占据网格轨道的 min-content关键字,表示以网格项的最大的最小内容来占据网格轨道 auto如果该网格轨道为最大时,等同于max-content,为最小时,等同于min-content grid-template-columns 它和grid-template-rows类似,一个设置网格行,一个是设置网格列。
max-block-size max-height max-inline-size max-lines max-width min-block-size min-height min-inline-size min-width mix-blend-mode nav-down nav-left nav-right nav-up object-fit object-position opacity orphans outline outline-color outline-offset outline-style outline-width overflow overflow-block...
Use for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering. Sample text here... Copy <p>Sample text here...</p> You may optionally add the .pre-scrollable class, which will set a max-height of 350px and provide a y-axis...
属性描述CSS height 设置元素的高度 1 max-height 设置元素的最大高度 2 max-width 设置元素的最大宽度 2 min-height 设置元素的最小高度 2 min-width 设置元素的最小宽度 2 width 设置元素的宽度 1弹性盒子模型(Flexible Box) 属性(新)属性说明CSS flex 复合属性。设置或检索弹性盒模型对象的子元素如何分配...
# CSS number 单位仅仅一个数字。用于 opacity,max-lines等。有时值必须是整数,例如:max-lines。# CSS percentage 单位表示百分比值,如“50%”,“66.7%”等。它是CSS 标准的一部分,设备端样式属性中只有部分样式支持。← 文本样式 支持使用的颜色关键词 → ...