解决方法
CSS
.selector { position: fixed; top: 0; left: 0; width: 100%; }
HTML
<div class="selector"> ... content for bar here ... </div>