简体   繁体   中英

add favicon - <doctype! html> not <!DOCTYPE html>

I need to add favicon to my website but it is <doctype! html> <doctype! html> and when I add commands as this nothing happens

<link rel="icon" href="/static//ico/favicon.png"> 

when <doctype! html> <doctype! html> to <!DOCTYPE html> , some of sizes change and Ui details change.

I use python3 and flask.

I would appreciate your help.

There are 2 main issues with your code:

  1. <DOCTYPE! HTML> <DOCTYPE! HTML> renders in quirks mode causing some things to not work, change it to <!DOCTYPE HTML> and fix the layouts.

  2. You have a // in your file path that shouldn't be there, change that to / .

I don't have enough reputation to leave a comment, but please add more code so I can help you

Update

I looked at your code and I think that you need to change the height in msg-wrapper-body class from 100% to 100vh and it will fix your problem.

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