我可以用什么代替& nbsp;& nbsp;在HTML? [英] What can I use to substitute    in HTML?

查看:158
本文介绍了我可以用什么代替& nbsp;& nbsp;在HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

   is ugly, I think.


推荐答案

(css属性),如下:

Margin and/or Padding. (css properties), like so:

<p style='padding-left : 10px'>Hello</p>

(值得注意的是,通常认为这是一种不好的做法,在外部css文件中声明一个选择器,并设置类/任何适当的。)

(It's worth noting that it's generally considered bad-practice to put an inline style like that; you typically declare a selector in an external css file and set the class/whatever appropriately.)

这篇关于我可以用什么代替&amp; nbsp;&amp; nbsp;在HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆