0
我想隱藏移動和桌面視圖中的圖像,並將鼠標懸停在桌面上的圖像上,並且無法在移動設備上懸停。我使用Bootstrap 4類,但它不工作。我的代碼是否正確?爲什麼我的圖像不能隱藏在引導程序中4隱藏類
<!--start of code-->
<div class="container-fluid">
<div class="row no-padding">
<div class="col align-self-center hero">
<!--image start-->
<div class="row no-padding no-gutters">
<!--display md,lg,xl desktop-->
<div class="col-md-12 col-lg-12 col-xl-12 .d-none .d-md-block "> <img class="hidden-sm-down imghover img-fluid" src="images/hero.jpg" alt="The Semiotics hero"></div>
<!--display xs, sm mobile/tablets -->
<div class="col-xs-12 col-sm-12 .d-md-none "><img class="hidden-md-up imghover img-fluid" src="images/hero-mb.jpg" alt="The Semiotics hero"></div>
</div>
<!--image end-->
<div class="hovertext">
<!--display lg,xl desktop-->
<div class="col .d-none .d-lg-block align-self-center">
<h5 class="text-center"> ILLUSTRATION </h5>
<h1 class="text-center"> darwin </h1>
<h4 class="text-center"> July 14, 2017 </h4>
<div class="explore-button text-center">
<button type="button" class="btn btn-default">EXPLORE<span class="icon-right"></span><span class="icon-right after"></span></button>
</div>
</div>
</div>
</div>
</div>
</div>