如何在html中创建制表符缩进 [英] How do I create tab indenting in html

查看:345
本文介绍了如何在html中创建制表符缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下情况:

< body>

测试< br />

测试< br />
test1< b>

< / body>


我需要在第二次测试和第三次测试后添加一个标签



,以便看起来类似于此。



测试

    测试

         test1


TAB是否有特殊的HTML实体或特殊字符?例如。非破坏性空间==&

p>

看起来像列表的一个明显的用例,具有可变的margin和list-style-type:none;经验丰富。

I have a situation as follows

<body>
Test<br />
test<br />
test1<br />
</body>

I need to add a tab after the 2nd test and 3rd test

so that it looks similar to this.

Test
    test
        test1

Is there a special HTML entity or special character for TAB. eg. Non-breaking space == & nbsp ;

thanks

解决方案

Ye gods, tables?

Looks like an obvious use-case for lists, with variable margin and list-style-type: none; seasoned to taste.

这篇关于如何在html中创建制表符缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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