How can I make “display: block” work on a in IE?

后端 未结 5 1636
鱼传尺愫
鱼传尺愫 2020-12-09 01:24

Is there anything I can do to make IE display table cells as actual blocks?

Given this style:

table,tbody,tr,td,div {
  display: block;
  border: 1px         


        
5条回答
  •  心在旅途
    2020-12-09 02:09

    add this code:

    我这里是这么解决的,加上上面那条声明语句,display:block对td就会有效。

    you need add this code in the top.

    
    
    
        
    
    
        
    First Name Last Name Job Title
    James
    Matman
    Chief Sandwich Eater
    The
    Tick
    Crimefighter Sorta

    Add this line of code in the top, but use 'float' and 'width' is very good. sorry, my english so poor.

提交回复
热议问题