简体   繁体   中英

How to style favicon in title of html

I have been creating a replica of the Google Homepage, and I added the Google logo using a Favicon. Unfortunately, it isn't sized the way I'd like, and it is also square shaped. I was going to style it, but then I realized I wasn't sure how since it isn't just an image tag. Is there any to to style it? Here is my code.

    <!DOCTYPE html>
<html>
<head>
    <title>Google</title>
    <link rel="icon" type="image/ico" href="favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="GoogleHome.css">
</head>
<body>
<h1>Google</h1>
</body>
</html>

Here is the image: Google Logo

There is unfortunately no way to style the icon of an HTML webpage. You would have to do this in a form of image editor.

Good luck!

Sincerly Herman

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM