我有一个引导导航栏,我想以import scala.collection.JavaConversions._
def myJavaFun(in: java.util.Map[Object, java.lang.Double]): Unit = {}
val myMap = new java.util.HashMap[Object, Double]()
myJavaFun(mapAsJavaMap(myMap.mapValues(x => x)))
home
page1
page2
为中心。我已经在stackoverflow中搜索了所有相关问题,但我找不到任何适合我的目的,我已经使用page3
并且它有效但是当我缩小浏览器时,所选项目会显示尺寸不合适。这是我的代码:
答案 0 :(得分:2)
一种简单的方法是在导航栏中添加<string name="app_name">Sangamner College</string>
<string name="about_desc"><![CDATA[In order to make higher education available in the rural environment such as of Sangamner, Shikshan Prasarak Sanstha was established in 1960. Sangamner College was established by Shikshan Prasarak Sanstha, Sangamner on 23rd January 1961 on the auspicious occasion of Birth Anniversary of Netaji Subhashchandra Bose.The Arts and Commerce courses were commenced in June 1961 and in June 1965 Science courses were introduced. When Sangamner College was founded forty years ago, in 1961, there was no college available to the rural youth of this region. <br><br></>The college was founded with the aim of upliftment of the disadvantageous rural youth in all respects. On one hand, we are aware of the social circumstances prevailing in the rural area where we are working. So, we offer the elective option to students, which are favourable to the local atmosphere. On the other hand, we want to academically empower the aspiring youth by offering vocational course in Computer Applications to students of Arts & Commerce. B.B.A., B.C.A. and M.C.A. courses were started with the same purpose. “Think globally, act locally” is our guiding Principle.]]></string>
类。像这样:
text-center
答案 1 :(得分:0)
你只需要几种风格来获得我认为你想要的行为。看起来你正在使用display:inline-block
路线来中心元素,所以我将继续这种方法。对于现有样式,添加/修改定义以包含这些样式:
.nav.nav-center {
margin:0;
float:none;
}
.navbar-inner{
text-align:center;
}
这样,两个选项应该移动到导航栏的确切中心。这是一个JSFiddle example来向您展示这会是什么样子。我希望这就是你要找的!如果没有,请告诉我,我会很乐意进一步提供帮助。