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
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!