目前我正在試圖讓一個流程圖,這是迄今爲止我已經得到了代碼:流程圖與CSS/HTML
#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. font-weight:bold;和font-size:2em; 2.border半徑:3px的; – 2012-03-31 16:10:01
謝謝Sven,但我只想標題而不是文本的其他部分進行更改(我調整了我發佈的內容以使其更清晰)。 如果這是我想要的所有文本,我可以自己做足夠的修改:-P :-P – 2012-03-31 16:15:12
然後將您希望顯式更改的文本放在一個類中,然後將樣式附加到該類class – 2012-03-31 16:19:07