zoukankan      html  css  js  c++  java
  • HTML &nbsp

    HTML &nbsp

    今天进入 HTML 的学习了。

    今天学到的一点就是,以后不能再用 &nbsp 来替换空格了。

    以前在刚开始学的时候,不知道是从哪里弄来的骚操作,反正网上是这么流传的。 空格 === &nbsp,然而实际上,&nbsp,顾名思义,叫做 none break space,这是不会 break 的 space,这就会导致我们的网页在排版的时候经常会因为&nbsp 导致排版的问题。

    所以,切记,以后不能再用 &nbsp 来替换空格了。

    <div class="space">
    	hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello 
    </div>
    <div class="&nbsp">
      <-! "u00A0" !->
      hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello 
    </div>
    
  • 相关阅读:
    简单验证用户输入身份证号和手机号
    伸展树(Splay Tree)
    AVL树
    Size Balanced Tree(节点大小平衡树)
    Treap
    可持久化线段树(主席树)
    划分树
    归并树
    zkw线段树
    莫比乌斯反演
  • 原文地址:https://www.cnblogs.com/ssaylo/p/13261494.html
Copyright © 2011-2022 走看看