每个< br/>之后的缩进行在HTML中 [英] Indent line after each <br /> in HTML

查看:57
本文介绍了每个< br/>之后的缩进行在HTML中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将PDF图书转变为mobi图书(html),并且我还想重新创建布局.在那里,每次休息后,文本将排成一行.这应该是可行的

I try to turn a PDF book into a mobi book (html), and I also want to recreate the layout. There, after every break the text is intended one line. This should be doable with

<body style="text-indent:20px each-line;">

但是我做错了,因为它不起作用.

but I'm doing something wrong, as it doesn't work.

我不想对段落执行此操作,因为默认情况下该段落还包括一个空白行,但是这些中断并不总是意味着整个新段落...

I don't want to do this with paragraphs as that also includes a blank line by default, but those breaks don't always mean a entire new paragraph...

推荐答案

<浏览器尚不支持code>每行 (请参见MDN上的 text-indent ).但是,此 是您要使用的 .

这篇关于每个&lt; br/&gt;之后的缩进行在HTML中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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