小白教程
所有教程
关于
Search
172.70.178.25
172.70.178.25
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Css3 pr text wrap”的源代码
本页内容
上一节:
Css3_pr_text_shadow
下一节:
Css3_pr_word_break
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:text-wrap}}[[Category:css reference|199]] = 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-wrap:normal; } </style> </head> <body> <p class="test1">这段包含一些文本。这一行的文字不会换行到下一行。</p> <p class="test2"> 这段包含一些文本。这一行的文字正常换行。.</p> </body> </html> </run> == 浏览器支持 == 任何主流浏览器都不支持text-wrap属性。 == 属性定义及使用说明 == text-wrap属性指定文本换行规则。 {| class="table table-striped table-hover" | 默认值: | normal |- | 继承: | yes |- | 版本: | CSS3 |- | JavaScript 语法: | object.style.textWrap="none" |} == 语法 == <pre> text-wrap: normal|none|unrestricted|suppress;</pre> {| class="table table-striped table-hover" ! 值 ! 描述 |- | normal | 只在允许的换行点进行换行。 |- | none | 不换行。元素无法容纳的文本会溢出。 |- | unrestricted | 在任意两个字符间换行。 |- | suppress | 压缩元素中的换行。浏览器只在行中没有其他有效换行点时进行换行。 |}
返回至“
Css3 pr text wrap
”。
上一节:
Css3_pr_text_shadow
下一节:
Css3_pr_word_break