我想以div元素为中心,但是文本对齐在左边。代码:
<div class="container">
<div class="row">
<div class="col">
<h1><strong>Hello, what we can do for you?</strong></h1>
</div>
</div>
</div>
我试着将文本中心放在容器中
我已经创建了一个Jasper报告来显示从DB检索的文本。文本为HTML格式。在PDF中显示时,我需要设置文本的样式并对齐。这是一个来自DB的示例HTML文本
<html>
<p><b>This is Bold text</b></p>
<p> This is a paragraph whith indent</p>
<p>This is a paragra with no indent</p>
<p><center>This text should be cen
我有一个HTML页面,我希望我的内容居中,但是,在页面上的一个特定表中,我需要让许多单元格左对齐,许多单元格是右对齐的,一个单元格是中心对齐的。下面是HTML & CSS的一个片段,它应该让您了解我想要做的事情:
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
.contentWr