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;
}
925 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
574 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
615 GDB gets version error when attempting to debug with the Presense SDK (IDE)
624 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.