我尝试使用以下代码单击图像时打开模式:
<a href="#" data-toggle="modal" data-target="#download"><img class="featurette-image pull-right" src="http://i.imgur.com/96C9Nij.png"></a>
<div class="modal fade" id="download" tabindex="-1" role="dialog" aria-labelledby="downloadlabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="downloadlabel">Download & Install Pixelmon</h4>
</div>
<div class="modal-body">
<p>
<strong>Installing Pixelmon</strong><br /><br />
First, you'll need to install Forge, so simply double-click "minecraftforge-installer-x.x.x-x.xx.x.xxx" and a menu will pop up for you to install forge.
</p>
<p>
Once you have done that its recommended you open the minecraft launcher, create a new profile, …Run Code Online (Sandbox Code Playgroud) 所以我一直试图为你可以在下面看到的导航栏的内圈设置一个背景图像,但我似乎无法让它工作.我尝试用css替换图像网址上的背景颜色,并进行适当的格式调整,但没有运气

我想要设置为背景的图像:

这是css:
nav.navbar{
position: fixed;
top: 0;
left: 0;
width: 100%;
border-bottom: 45px solid #252525;
}
ul.nav{
position: relative;
float: left;
width: 100%;
margin: 0;
padding: 0;
}
ul.nav:before, ul.nav:after{
content: '';
position: absolute;
left: 50%
}
ul.nav:before{
/*this controlls the outer circle of the ball*/
margin-left: -63px; /*split the width in half and set to negative: eg: 170 : 2 = 85 px*/
top: 40px; /*this is relative to your image, which I measured in photoshop, it will …Run Code Online (Sandbox Code Playgroud)