its*_*sme 3 javascript css navbar graphical-logo twitter-bootstrap
我尝试将.brand徽标集中在:
.brand { margin-left: auto; margin-right: auto; }
Run Code Online (Sandbox Code Playgroud)
这是我的顶级导航栏布局:
但它似乎不起作用.
我之前在堆栈上搜索过这个答案,我上面使用的代码来自一个已回答的问题.
知道如何居中.brand?
NB:我不能使用position:absolute and fixed,我想响应地做这个(responsive)
我也试过这个:
.brand {
margin:0 auto !important;
padding:0 auto !important;
position:absolute !important;
right:0px;
left:0px;
z-index:9999999999 !important;
}
Run Code Online (Sandbox Code Playgroud)
.navbar .brand {
margin-left: auto;
margin-right: auto;
width: 60px;
float: none;
}
Run Code Online (Sandbox Code Playgroud)
我给它任意宽度,把它设置成你想要的任何东西.
| 归档时间: |
|
| 查看次数: |
20472 次 |
| 最近记录: |