【发布时间】:2014-03-20 05:16:14
【问题描述】:
我创建了一些网站,但由于某种原因,我的最新网页在移动浏览器上呈现不正确。我觉得这与我用于间距(像素)的单位有关,但我不确定。
网页是 www.zfisch.com
这里有一些sn-ps的相关代码,首先是视口:
<meta name="viewport" content="width=500, initial-scale=1">
接下来,我为图片准备的 CSS:
a #twitter {
background-color: black;
height: 32px;
width: 110px;
border-radius: 6px;
position: relative;
margin-left: 46%;
top: 159px;
z-index: 1;
}
a #email {
background-color: black;
height: 32px;
width: 110px;
border-radius: 6px;
position: relative;
margin-left: 46%;
top: 159px;
z-index: 1;
}
img[src="zack.jpg"] {
height: 150px;
width: 150px;
border-radius: 50%;
border: 3px solid white;
margin-top: 100px;
left: 44.5%;
position: absolute;
}
p[id="brackets"] {
font-size: 100px;
left: 43%;
position: absolute;
margin-top: 100px;
}
如果有人能指出我正确的方向,我将不胜感激。谢谢!
【问题讨论】:
-
靠近底部的图片?
-
知道如何解决这个问题吗?
-
我只是看了看,底部的括号是
text-align: center。图像可能是边距问题。我也认为left正在敲掉一些东西。 -
嗯。谢谢,我试试看。