Home > Web Front-end > HTML Tutorial > How to set the width and height of a hyperlink

How to set the width and height of a hyperlink

php中世界最好的语言
Release: 2018-01-31 09:47:54
Original
4586 people have browsed it

We know that the width and height of a hyperlink cannot be directly set using width and height, so today I will give you a little trick on how to set the width and height of a hyperlink.
We add display:block to the hyperlink. ;Or display:inline-block;
Change it to a block attribute and it will be ok.

I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to other related topics on the PHP Chinese website article!

Related reading:

How to use H5’s FileReader distribution to read files and an introduction to its methods

html The table is too wide and overflows the parent Container solution

#In HTML, how can the drop-down menu retain the selected value after submission and not return to the default value

How to use H5 to add a zoom-disable function

How to use the new semantic tag feature of H5

The above is the detailed content of How to set the width and height of a hyperlink. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template