加在控件的参数里
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
apiready = function() {
var map= api.require('baiduMap');
map.open({
fixedOn:api.frameName,
x: 0,
y: 64,
w: 320,
h: 400
})
</script>