“Css3 pr text wrap”的版本间差异

本页内容
上一节: Css3_pr_text_shadow 下一节: Css3_pr_word_break
(创建页面,内容为“{{DISPLAYTITLE:text-wrap}}9 = CSS3 text-wrap 属性 = Allow no line breaks: <sample title="" desc="" lang="html" hererun="1"> p.test {text-wrap:none;} </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> p.test1 { width:11em; border:1px solid #000000; text-wrap:none; } p.test2 { width:11em; border:1px solid #000000; text-wra…”)
 
Neo讨论 | 贡献
无编辑摘要
 
第1行: 第1行:
{{DISPLAYTITLE:text-wrap}}[[Category:css3 text effects|9]]
{{DISPLAYTITLE:text-wrap}}[[Category:css reference|199]]
= CSS3 text-wrap 属性 =
= CSS3 text-wrap 属性 =



2022年8月19日 (五) 04:48的最新版本

CSS3 text-wrap 属性

Allow no line breaks:


示例

p.test {text-wrap:none;}

浏览器支持

任何主流浏览器都不支持text-wrap属性。

属性定义及使用说明

text-wrap属性指定文本换行规则。

默认值: normal
继承: yes
版本: CSS3
JavaScript 语法: object.style.textWrap="none"

语法

text-wrap: normal|none|unrestricted|suppress;
描述
normal 只在允许的换行点进行换行。
none 不换行。元素无法容纳的文本会溢出。
unrestricted 在任意两个字符间换行。
suppress 压缩元素中的换行。浏览器只在行中没有其他有效换行点时进行换行。
上一节: Css3_pr_text_shadow 下一节: Css3_pr_word_break
此页面最后编辑于2022年8月19日 (星期五) 04:48。