2016-04-01 8 views
1

私は新しい行に行かずにfont-size異なっを持っている可能性がどのように右側に引っ張られるために小規模リンクフォントサイズH2タグ内

を行っている通常のfont-sizeh2内部のタグが付けられたリンクをしたいですか?

は私が

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" /> 
 
<h2 class="title-bg acenter">title 
 
     <a class="heading pull-right" href="#"> 
 
       pull right link title 
 
     </a> 
 
</h2>

答えて

1

あなたがsmall、セットを使用しようとすることができ、これは、それが新しい行に行くものは何でも、私はリンクの内側に入れて...同じ行にすべてになりたいですfont-size65%にブートストラップに

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/> 
 
<h1>With small</h1> 
 
<h2 class="title-bg acenter">title 
 
    <a class="heading pull-right" href="#"> 
 
     <small> pull right link title</small> 
 
    </a> 
 
</h2> 
 
<hr /> 
 
<h1>Without small</h1> 
 
<h2 class="title-bg acenter">title 
 
    <a class="heading pull-right" href="#"> 
 
     pull right link title 
 
    </a> 
 
</h2>
(おそらく賢明 smallタグ、色のスタイルにする必要があります)

+0

はあなたに感謝!それはきれいだったし、それは働いた! – Ris

+0

あなたは ':)'を歓迎します – dippas

1

このようにしてみてください:

<h2 class="title-bg acenter">title 
    <a class="heading pull-right sm_font" href="#"> 
      pull right link title 
    </a> 
</h2> 

CSS:

a.sm_font{font-size:12px} 
関連する問題