HTML:桌子上的Td不满

时间:2018-10-03 02:01:04

标签: html css

我使用引导程序并创建标题固定表和滚动高度。我想制作一张桌子,其中td将随着屏幕尺寸扩展。我在哪里错了?

当我使用IE dev工具分析整个内容时,我看到,如果td高度不包含数据,则td高度将略小于表格(***我不想在td中固定高度,因为我必须输入第三列中的长数据)。如何将div的高度设置为与桌子一样大? 谢谢您的帮助 编辑:我的源代码:

ListView listaCanciones;
List<String> list;
ListAdapter adapter;

MediaPlayer mp; ;

int posicion = 0;
Button play_pause, btn_repetir;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_explorador);

play_pause = (Button)findViewById(R.id.btnPlay_Pause);
listaCanciones = findViewById(R.id.lv);

list = new ArrayList<>();

Field[] fields = R.raw.class.getFields();
for (int i = 0; i < fields.length; i++){
    list.add(fields[i].getName());
}


adapter = new ArrayAdapter<>(this, R.layout.list_view_configuracion, list);
listaCanciones.setAdapter(adapter);

listaCanciones.setOnItemClickListener(new AdapterView.OnItemClickListener() {
    @Override
    public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {


        if(mp != null ){
            mp.stop();
            mp.release();
        }

        int resID = getResources().getIdentifier(list.get(i), "raw", getPackageName());
        mp = MediaPlayer.create(Explorador.this, resID);
        mp.start();
        play_pause.setBackgroundResource(R.drawable.pausa);
        //Toast.makeText(getApplicationContext(), "Reproduciendo", Toast.LENGTH_SHORT).show();
    }
});

和CSS:

public void Next(View view){
    mp.stop();
    mp.release();
    posicion = (posicion + 1)%list.size();
    int u = getResources().getIdentifier(list.get(posicion), "raw", getPackageName());
    mp = MediaPlayer.create(getApplicationContext(), u);
    mp.start();

}

public void Anterior(View view){
    mp.stop();
    mp.release();
    posicion = (posicion - 1 < 0)? list.size() - 1: posicion-1;
    int u = getResources().getIdentifier(list.get(posicion), "raw", getPackageName());
    mp = MediaPlayer.create(getApplicationContext(), u);
    mp.start();
}

结果:

enter image description here

0 个答案:

没有答案