set the height of html element to 100%,then it works