css white-space attribute


  Translation results:

white

English [waɪt] American [hwaɪt, waɪt]

adj. White, pure; colorless, transparent; White; Caucasian

n. White; Caucasian; Blank; White pigment

vt. (Writing, printing, etc.) Leave a blank space; make it white, whitewash; Bleach

space

英[speɪs] 美[spes]

n. Space, space; blank, interval; gap; moment

vt. Separate..., leave gaps between...

vi. Arrange at certain intervals

css white-space attributesyntax

Function: The white-space attribute sets how to handle whitespace within the element.

Description: This attribute declares how to handle whitespace characters in elements during the layout process. The values ​​pre-wrap and pre-line are new in CSS 2.1.

Note: Any version of Internet Explorer (including IE8) does not support the attribute value "inherit".

css white-space attributeexample

<html>
<head>
<style type="text/css">
p
{
white-space: nowrap
}
</style>
</head>
<body>
<p>
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
php中文网
</p>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A