【发布时间】:2012-03-31 16:06:05
【问题描述】:
目前我正在尝试制作流程图,这是我目前得到的代码:
#flowchart {
width: 580px;
text-align: center;
font-family: sans-serif;
font-size: .8em;
margin: auto;
}
#flowchart a {
display: block;
color: white;
text-decoration: none;
background-color: #2F41B1;
padding: 2em 1em;
}
#flowchart a:hover {
color: #111;
background-color: #EFA707;
}
.no1 {
width: 390px;
border: 1px solid #444;
margin: 0 auto;
}
.line1 {
width: 1px;
height: 20px;
background-color: #000;
margin: 0 auto;
}
.clear {
clear:both;
}
<div id="flowchart">
<div class="no1"><a href="http://example.com/page1">Step 1:
Blah blah blah, do this.</a></div>
<div class="line1"></div>
<div class="no1"><a href="http://example.com/page2">Step 2:
Then this and that.</a></div>
<div class="line1"></div>
<div class="no1"><a href="example.com/page3">Step 3:
Now finally go here and there.</a></div>
</div>
我怎样才能使每个部分的标题(“步骤 x”)变粗并变大? (而不是后面的内容,“等等等等”)
另外,如何制作圆角而不是锐边?
【问题讨论】:
-
1.字体粗细:粗体;和字体大小:2em; 2.border-radius:3px;
-
感谢 Sven,但我只想更改标题而不是其余文本(我调整了我发布的内容以使其更清晰)。如果这是我想要更改的所有文本,我知道自己可以这样做:-P :-P
-
然后将您想要明确更改的文本放在一个带有类的跨度中,并将样式附加到该类
标签: html css rounded-corners flowchart html-heading