is there any way to set the link element <a
to 100% width inside a <td
???Schränkungsweite für <a element in <td to 100%
thank you
is there any way to set the link element <a
to 100% width inside a <td
???Schränkungsweite für <a element in <td to 100%
thank you
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.
Geben Sie das <a>
Element display: block;
und es wird über die gesamte Breite der übergeordneten zu gewinnen.
Arbeits Demo: http://jsfiddle.net/sUT5e/