English 中文(简体)
整个段是否一致?
原标题:Indent an entire paragraph?

我有一部法律文件,如:

<p><strong>This Is A Question</strong></p>
<p><strong>Answer.</strong> This is the content of the answer, and I am going to keep 
typing until it kicks to a new line.</p>

我确实注意到,如果通过浏览器显示,新线与回答内容的开始不符。 与左边一样。 我也知道,不要指望超文本来做这样的事情,必须质疑。 我选择“削弱”这一案文本身有何选择?

任何帮助都将受到高度赞赏。

最佳回答

http://www.stubbornella.org/content/06/25/the-media-object-saves-hundreds-of-lines-of-code/"rel=“nofollow” 页: 1

问题回答

我认为这是你想要的:

<p><strong>This Is A Question</strong></p>
<p><strong style="float:left">Answer.</strong> 
<div style="display:inline-table;float:right">This is the content of the answer, and I am going to keep typing until it kicks to a new line.</div></p>

Edit: Scratch that, it work in FF + IE, but not in chrome

Try negative padding in CSS for the div of your paragraph. Usually work across webkit and gecko.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签