Discussion on the space problem in Dreamweaver
Author:Eve Cole
Update Time:2009-06-01 01:03:03
Dreamweaver is a very simple to use but powerful web page creation software. However, it is another question that confuses many beginners. That's the space. Using spaces in Dreamweaver is far from as convenient as in word. For example, there cannot be spaces in the first line, and there cannot be more than one space in the middle of the sentence. What is the reason? This is because in the HTML language more than one space is ignored. This creates the difficulty of spaces.
How to solve the space problem in Dreamweaver? There are many solutions:
1. Make a small transparent picture. Embedded in text or at the beginning of a line. This method is more troublesome to implement.
2. Use full-width spaces. Why is this solution feasible? Because full-width spaces are relatively simple to implement. Although it is also a space, the corresponding HTML code is not a space code. It's another code, so Dreamweaver treats it as a character instead of a space. So we can live in peace. But in browsers that don’t support Chinese character sets, it looks like garbled characters.
3. Use soft spaces. That is, press Ctrl+shift+space where you want to insert a space. All browsers recognize such spaces. But the disadvantage is that you cannot see how many spaces have been inserted when editing the page. You can only see it clearly when previewing it in the browser. Not intuitive enough. Soft spaces actually use code. It is a non-stop space mark. It can generate soft spaces. Each time you press Ctrl+shift+space, you add a code.
Although the code is simple, it is also very effective. When making a web page, we rely on this code to help when we leave one or several lines blank. Friends who have studied HTML know that the <p></p> tag is used to mark a paragraph. If I just write <p></p>, will this code generate a blank line? This is invalid. It must be added in the <p> tag; code will do. <p> </p>This kind of code will have a blank line effect. Here the mark also plays a role in occupying the position. In addition, if you use Dreamweaver to generate a table, you will find it when you look at the source code. The page in the cell <td> label has this mark <td> </td>. If you delete these marks, you will find that all the cells are squeezed together. It is impossible to fill in the content at all and you have to drag the border.