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

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

WBOY
WBOYOriginal
2016-06-24 12:17:531184browse

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
Quick Start

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn