方法一: public static int SCREEN_WIDTH; public static int SCREEN_HEIGHT; //获取屏幕 WindowManager wm = (WindowManager) getBaseContext().getSystemService( Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); Point size = new Point(); display.ge
(1)高度 将style=“height:900px”放在<div class = "modal-dialog">或者更外层上,整个模态框的高度不会发生变化 如下图所示: 将style=“height:900px”放在<div class = "modal-content">上,是将整个模态框(包括头部.中间.末尾)设置为高度为900px;如下图所示: 若将style=“height:900px放在<div class = "