Home >Development Tools >dreamweaver >How to empty two spaces in dreamweaver
The methods for emptying two spaces in Dreamweaver are: 1. Use entity reference code; 2. Create a CSS style with padding-left: 2em; attribute; 3. Use the preformatted tag
. </p></blockquote> <p><img src="https://img.php.cn/upload/article/202404/09/2024040900001562447.jpg" alt="How to empty two spaces in dreamweaver" ></p> <p>##How to empty two spaces in Dreamweaver<strong></strong></p> <p>Method: <strong></strong></p> The method of emptying two spaces in Dreamweaver is as follows: <p></p> <ol> <li> <p>Use entity reference code: <strong></strong></p>Enter the following entity reference code where two spaces are required. : <p></p>For example:<p><p>Two spaces here: Dreamweaver</p><code></code></p> </li> <li> <p>Use CSS Style: <strong></strong></p>Create a CSS style with the following properties: <p></p> <pre class="brush:php;toolbar:false"><code class="css">.empty-two-spaces { padding-left: 2em; }</code>Then apply this style to text that requires two spaces:< p class="empty-two-spaces">Empty two spaces here: Dreamweaver
#Use HTML pre-formatted tags: Note:Preformat text using the
<p> tag, by default each space in the text is retained as one space. <code></code>For example: </p> <pre class="brush:php;toolbar:false"><code class="html"><pre class="brush:php;toolbar:false">这里空两格: DreamweaverThe first method only works for HTML documents.
- The second method requires CSS knowledge.
- The third method can only use the space key to space, and cannot use entity references or tabs.
The above is the detailed content of How to empty two spaces in dreamweaver. For more information, please follow other related articles on the PHP Chinese website!