Home > Article > Web Front-end > Please tell me how to write so that when the mouse moves to the link, the background of the table td to which it belongs is changed to another picture?_html/css_WEB-ITnose
I want to make it a button. If the background of the link is switched, the link text is of different lengths and the display will be different. There will be pros and cons, what should we do about this?
Add an id to td
The anchor element is an inline box. You can try it like this:
a{display:block;width:100px;height:100px;}This width is the maximum width of the characters you specify, so it is unified