嵌套的html表(子表宽度问题)

时间:2015-05-28 15:45:07

标签: html html-table nested-table

我有一些嵌套表。

我有两个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)

enter image description here

1 个答案:

答案 0 :(得分:0)

你应该提供一些代码。根据我的理解,您可以声明包含额外td的{​​{1}}:

table

&#13;
&#13;
td {
overflow-y: scroll;
}
&#13;
td {
  overflow-y: scroll;
}
td,
th {
  border: 1px solid gray;
}
table {
  border: 1px solid blue;
}
&#13;
&#13;
&#13;