我一直試圖在導航欄上放置圖像的圖像只顯示名稱。資產管道中的圖像位於名爲images的文件夾中,我正在使用bootstrap。我現在有這個在我的代碼:在導航欄中放置圖像僅顯示圖像名稱而不顯示圖像
`<%= link_to image_tag('WikiLogoFinal.jpg'), getting_started_path, id: "logo" %>`
我的CSS如下:
#logo {
float: left;
margin-right: 10px;
font-size: 1.7em;
color: $niceBlandGreen;
text-transform: uppercase;
letter-spacing: -1px;
padding-top: 9px;
font-weight: bold;
line-height: 1;
&:hover {
font-size: 1.75em;
color: white;
background: $shinyOrange;
text-decoration: none;
}
}
的圖像不是問題,因爲我已經使用了不同的一個。
是那些回抽動在你的實際代碼? – RadBrad 2012-07-06 18:10:31
沒有這些網站的格式 – mustaisa 2012-07-09 19:44:13