diff options
Diffstat (limited to 'files/zh-cn/web/html/element/nobr/index.html')
| -rw-r--r-- | files/zh-cn/web/html/element/nobr/index.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/files/zh-cn/web/html/element/nobr/index.html b/files/zh-cn/web/html/element/nobr/index.html new file mode 100644 index 0000000000..0e6fdd2286 --- /dev/null +++ b/files/zh-cn/web/html/element/nobr/index.html @@ -0,0 +1,21 @@ +--- +title: <nobr> +slug: Web/HTML/Element/nobr +translation_of: Web/HTML/Element/nobr +--- +<div>{{non-standard_header}}</div> + +<h2 id="Summary" name="Summary">概述</h2> + +<p><span class="seoSummary"> HTML <code><nobr></code> 元素阻止文本自动拆分成新行,所以它展示为长的一行,可能还需要滚动。这个标签不是标准的 HTML,并且不应该使用。反之应该使用 CSS 属性</span> {{Cssxref("white-space")}},像这样:</p> + +<pre class="brush:css"><span style="white-space: nowrap">Long line with no breaks</span></pre> + +<h2 id="See_also" name="See_also">另见</h2> + +<ul> + <li>{{Cssxref("white-space")}}</li> + <li>{{Cssxref("overflow")}}</li> +</ul> + +<div>{{HTMLRef}}</div> |
