0
アイコンを手に入れて、ブートストラップを大きくする方法が不思議でした。ブートストラップでアイコンを大きくする方法
HTML:
<div class="square1">
<a href="#">
<span class="glyphicon glyphicon-search"></span>
</a>
</div>
が検索大きなアイコンを大きくするために探して。
アイコンを手に入れて、ブートストラップを大きくする方法が不思議でした。ブートストラップでアイコンを大きくする方法
HTML:
<div class="square1">
<a href="#">
<span class="glyphicon glyphicon-search"></span>
</a>
</div>
が検索大きなアイコンを大きくするために探して。
font-size
プロパティを使用してください。
.square1:hover{
font-size:2em;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
<div class="square1">
<a href="#">
<span class="glyphicon glyphicon-search"></span>
</a>
</div>
div {
margin: 1em;
outline: 1px dotted red;
}
a {
display: inline-block;
padding: .5em;
transition: transform .5s linear;
}
a:hover{
transform: scale(2);
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
<div class="square1">
<a href="#">
<span class="glyphicon glyphicon-search"></span>
</a><a href="#">
<span class="glyphicon glyphicon-search"></span>
</a><a href="#">
<span class="glyphicon glyphicon-search"></span>
</a>
</div>
1より簡単な質問は、私は、アイコンのホバー効果を変更したい場合もありますか? – Nevershow2016
ポストをホバー効果で更新しました。 – Wowsk