在我Joomla 3.x Bootstrap site我想有重疊放置這樣的導航欄和幻燈片徽標:徽標位置重疊//的Joomla引導
導航欄是「固定頂」及幻燈片放置在任何其他容器之外以便以全寬度顯示。 爲了使事情更加複雜,徽標應該像滾動條一樣在滾動時固定在頂部。 但是在移動設備上,它應該向上移動(再次像導航欄),甚至被另一個(較小的)圖像取代。
這怎麼可能實現?
徽標鏈接到家,現在通過將href和徽標圖像本身放在index.php中完成。
要根據視口輕鬆更改圖像,我必須在CSS中執行此操作。但那麼如何鏈接到家?
請幫助我正確獲取徽標圖像(響應)的位置。
.logo-wrapper {
\t position: relative;
\t z-index:1;
} \t
\t
.toplogo {
position:absolute;
width:auto;
height:auto;
z-index:10;
left: 0px;
top: 0px;
}
<body id="<?php echo ($itemid ? 'itemid-' . $itemid : ''); ?>">
\t \t \t <div id="toplogo">
\t \t \t \t <a href="<?php echo $root = JURI::root();?>" onfocus="blur()">
\t \t \t \t <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo-test.png" title="Zur Startseite" alt="<?php echo $root = JURI::root();?>" border="0"/>
\t \t \t \t </a>
\t \t \t \t </div>
<!-- Begin Navbar-->
<?php if ($this->countModules('position-9')): ?>
<div class="navbar navbar-inverse navbar-fixed-top">
<!-- navbar-inverse navbar-fixed-top -->
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!--<a class="brand" href="#"><?php echo $sitename ?></a>-->
<div class="nav-collapse collapse">
<jdoc:include type="modules" name="position-9" style="none" />
</div>
</div>
</div>
</div><!--End navbar-->
<?php endif; ?>
<?php if ($this->countModules('position-5')): ?>
\t \t \t \t <div class="bigimage">
\t \t \t \t \t <jdoc:include type="modules" name="position-5" style="none" />
\t \t \t \t \t <div class="clearfix"></div>
\t \t \t \t </div><!--End Bigimage-->
\t \t \t \t <?php endif; ?>
\t <div class="container">
\t \t <!-- Begin Header-->
\t \t <div class="header">
\t \t \t <div class="header-inner">
不幸目前還沒有答案。我知道要問很多,但我現在試圖讓自己完成兩天而沒有成功。我什至發現另一個問題(http://stackoverflow.com/questions/11816819/put-a-logo-on-twitter-bootstrap-navbar-without-resizing-the-navbar),但不幸的是它沒有工作。我想要達到的目標也可以在這裏看到:http://www.skagosoil.gr/。在此期間,我已將徽標鏈接放回到導航欄容器中...... – Lyzarr