我有一些嵌套表。
我有两个tds,一个是14%,另一个是86%。
较长的td包含另一个表。现在子表的宽度很长。
我想要做的就是让较长的td适合子表,这样它就不会过度流动而是滚动。
@Override
public void surfaceCreated(SurfaceHolder holder){
bg = new Background(BitmapFactory.decodeResource(getResources(),R.drawable.background));
player = new Player(BitmapFactory.decodeResource(getResources(),R.drawable.character),WIDTH/2,HEIGHT/2+40,80,75,14);
safeArea = new SafeArea(WIDTH/2,HEIGHT/2,100,40);
bouncer = new ArrayList<Bouncer>();
thread = new MainThread(getHolder(), this);
//Start the game loop
thread.setRunning(true);
thread.start();
setOnTouchListener(player);
}
let vc = TwoViewController(nibName: "TwoViewController", bundle: nil)
navigationController?.pushViewController(vc, animated: true)
答案 0 :(得分:0)
你应该提供一些代码。根据我的理解,您可以声明包含额外td
的{{1}}:
table
td {
overflow-y: scroll;
}
&#13;
td {
overflow-y: scroll;
}
td,
th {
border: 1px solid gray;
}
table {
border: 1px solid blue;
}
&#13;