2011-01-16 12 views

Antwort

3

A link <a> is inline element, you can't apply a width to it unless you make it block-level element:

#tableID td a{ 
    display:inline-block; 
    width:100%; 
} 

The above selector will make all links inside td inside table with id #tableID block so that width is applicable.

Check out Inline and Block elements for more info

2

Geben Sie das <a> Element display: block; und es wird über die gesamte Breite der übergeordneten zu gewinnen.

Arbeits Demo: http://jsfiddle.net/sUT5e/