我正在为CSS中的响应表创建表头,如下所示:
td:nth-of-type(1):before { content: "Abfahrtszeitpunkt"; }
td:nth-of-type(2):before { content: "Startort"; }
td:nth-of-type(3):before { content: "Zielort"; }
td:nth-of-type(4):before { content: "Karte"; }
td:nth-of-type(5):before { content: "Bewertung"; }
td:nth-of-type(6):before { content: "Fahrt löschen"; }
Run Code Online (Sandbox Code Playgroud)
但是当我在我的webbrowser中加载这个表时,"ö"没有以正确的方式显示.网侧只打印出带有问号的菱形.我已经尝试用html和javascript修复它,但它不起作用.有没有一种简单的方法来解决我的问题?