は、私は1つのメニューを作ってみましたか?可変画像サイズ。ブートストラップは、NAV、NAV-錠剤は、画像、画像verical ALIGN
コード:
.vehicletype{
width:90%;
line-height:70px;
margin-right:5%;
margin-left:5%;
margin-top:5%;
}
.vehicletype img{
\t vertical-align:bottom;
}
.vehicletype a{
\t vertical-align:top;
}
.vehicletype ul li {
float:left;
width:12.5%;
list-style:none;
text-align:center;
font-size:14pt;
text-transform:uppercase;
font-stretch:semi-condensed;
font-weight:bold;
}
.vehicletype ul li a{
width:100%;
color:rgba(200,54,55,1);
-webkit-filter: grayscale(100%)
brightness(135%)
contrast(120%);
filter: grayscale(100%)
brightness(135%)
contrast(120%);
transition: filter 0.1s, box-shadow 0.1s;
-webkit-transition: filter 0.1s, -webkit-filter 0.1s, box-shadow 0.1s;
}
.vehicletype ul li a:hover img{
\t width:100%;
\t color:rgba(200,54,55,1);
\t filter:none;
\t -webkit-filter:none;
\t text-decoration:none;
}
.vehicletype ul li a:hover{
\t filter:none;
\t -webkit-filter:none;
\t text-decoration:none;
} \t
.vehicletype ul li a img{
\t width:100%;
\t margin-right:auto;
\t margin-left:auto;
\t padding-right:5%;
\t padding-left:5%;
-webkit-filter: grayscale(100%)
brightness(135%)
contrast(120%);
filter: grayscale(100%)
brightness(135%)
contrast(120%);
transition: filter 0.3s, box-shadow 0.3s;
-webkit-transition: filter 0.3s, -webkit-filter 0.3s, box-shadow 0.3s;
}
.vehicletype ul li a img:hover{
\t filter:none;
\t -webkit-filter:none;
}
.menuspan{
\t width:90%;
\t height:8px;
\t border-radius:4px;
\t background-color:rgba(200,54,55,1);
\t -webkit-filter: grayscale(100%)
brightness(165%)
contrast(100%);
filter: grayscale(100%)
brightness(165%)
contrast(100%);
transition: filter 0.3s, box-shadow 0.3s;
-webkit-transition: filter 0.3s, -webkit-filter 0.3s, box-shadow 0.3s;
margin-top:5%;
margin-left:5%;
margin-right:5%;
}
.vehicletype ul li .active a{
filter:none;
-webkit-filter:none;
}
.vehicletype ul li .active img{
filter:none;
-webkit-filter:none;
}
<div class="vehicletype">
<ul class="vehicletypes">
\t
\t
\t <li ><a href="?vehicletype=car">
\t <img src="http://pastorautoservis.com/sunday/theme/default/img/car1.png">
<div class="menuspan"></div>Car</a></li>
\t <li><a href="?vehicletype=van">
\t
\t \t <img src="http://pastorautoservis.com/sunday/theme/default/img/van1.png">
\t
\t <div class="menuspan"></div>Van</a></li>
<li><a href="?vehicletype=truck">
<img src="http://pastorautoservis.com/sunday/theme/default/img/truck1.png">
<div class="menuspan"></div>Truck</a></li>
<li><a href="?vehicletype=bus">
\t <img src="http://pastorautoservis.com/sunday/theme/default/img/bus1.png">
\t
<div class="menuspan"></div>Bus</a></li>
<li><a href="?vehicletype=motobike">
<img src="http://pastorautoservis.com/sunday/theme/default/img/motobike1.png">
\t <div class="menuspan"></div>motobike</a></li>
<li><a href="?vehicletype=boat">
<img src="http://pastorautoservis.com/sunday/theme/default/img/boat1.png">
\t <div class="menuspan"></div>boat</a></li>
<li><a href="?vehicletype=oldtimer">
<img src="http://pastorautoservis.com/sunday/theme/default/img/oldtimer1.png">
\t <div class="menuspan"></div>oldtimer</a></li>
<li><a href="?vehicletype=other">
<img src="http://pastorautoservis.com/sunday/theme/default/img/other1.png">
<div class="menuspan"></div>other</a></li>
</ul>
</div>