Home >Development Tools >dreamweaver >How to empty two spaces in dreamweaver

How to empty two spaces in dreamweaver

下次还敢
下次还敢Original
2024-04-09 00:00:151040browse

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:

    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">这里空两格:    Dreamweaver

  • Note:

    The 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!

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn