How about putting background-image: url('url') in the div tag?
<ons-toolbar>
<div class="center" style="background-image:url('http://cdn.sstatic.net/ja/img/sprites.png?v=b55eefad6ab0')"></div>
<div class="right">
<ons-toolbar-button>
<ons-iconion="ion-navicon" style="font-size:32px;width:1em">
</ons-toolbar-button>
</div>
</ons-toolbar>
You can also customize it with the modifier
attribute.
<ons-toolbar modifier="hogehoge">
<div class="center">Center Area</div>
</ons-toolbar>
The CSS specifies a class of navigation-bar--(modifier attribute value)
for ons-toolbar
.
.navigation-bar --hogehoge{
background: url('http://placehold.jp/150x50.png') no-repeat center center;
}
© 2024 OneMinuteCode. All rights reserved.