我有這樣的形象:兩種字體真棒箭頭
,我試圖做同樣的HTML
和CSS
,有兩個字體真棒圖標。我把position:absolute
作爲一個圖標靠近另一個。我試圖繞過這個圈子,但沒有取得任何成功。有人請給我一個手。
.formular {
\t \t position: relative;
\t }
\t .formular a {
\t \t text-decoration: none;
\t }
\t .circle .fa-caret-right {
\t font-size: 17px;
\t color: #000;
\t }
\t .circle {
\t position: relative;
\t border: 1px solid #CCCCCC;
\t border-radius: 50%;
\t background-color: #dce0e1;
\t padding: 5px;
\t }
\t .circle .fa-caret-right:first-child {
\t position: absolute;
\t left: 4px;
\t }
\t .circle .fa-caret-right:last-child {
\t position: relative;
\t }
\t .formular .text {
\t font: normal 15px 'CenturyGothic-Bold';
\t color: #028A92;
}
<!DOCTYPE html>
<html>
<head>
\t <title></title>
\t <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
</head>
<body>
\t <div class="formular">
\t \t <a href="#" title="Click here">
\t \t \t <span class="circle">
\t \t \t \t <i class="fa fa-caret-right" aria-hidden="true"></i>
\t \t \t \t <i class="fa fa-caret-right" aria-hidden="true"></i>
\t \t \t </span>
\t \t \t <span class="text">Ask for our forms</span>
\t \t </a>
\t </div>
</body>
</html>
你並不真的需要FA爲。簡單:⏩您也可以結合CSS兩個▶來調整結果。 –