0
因此,我在圖片上放置了一些鏈接(文本),並且在桌面瀏覽器中一切正常,但是,一旦您在移動瀏覽器中打開它,文字就不會顯示出來。這裏是我的CSS:移動瀏覽器中未顯示圖片的文字
#header {
width: 100%;
position: relative;
}
#dm {
top: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
}
#logo {
position: absolute;
top: 5%;
left: 18.8%;
width: 13.5%;
height: 64.8%;
background-color: transparent;
border: none;
}
h2 {
position: absolute;
top: 59%;
left: 21.7%;
width: 78%;
}
h2>a {
color: #f6f6f6;
font-size: 1.3vw;
font-variant: small-caps;
font-weight: lighter;
font-family: "Times New Roman", Times, serif;
text-decoration: none;
text-shadow: #000000 10% 10% 20%;
margin-right: 1%;
}
和HTML代碼:
<div id="header">
<img src="header.png" border="0" id="dm">
<a id="logo" href="index.html"></a>
<h2><a href="slider">Domů</a> <a href="slider">O nás</a> <a href="slider">Web & Grafický design</a> <a href="slider">Digitální kresba</a> <a href="slider">Pro firmy</a> <a href="slider">Ostatní služby</a> <a href="slider">Portfolio</a> <a href="slider">Faq</a> <a href="slider">Kontakt</a></h2>
</div>
有誰知道如何解決這個問題呢?