Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
因为您似乎正在尝试使用
left: 0; 绝对定位元素。 right: 0;
那么你需要添加。然后你可以开始看看你正在玩什么......除此之外......除了显示你正在使用的CSS之外,我无法真正破译你想要做什么。
http://jsfiddle.net/DCDVM/2/
Since it seems that you're trying to absolutely position the elements with
left: 0; right: 0;
then you'll need to add.Then you can start to see what you're playing with... Beyond that... I can't really decipher what you're trying to do aside from display the css you're working with.
http://jsfiddle.net/DCDVM/2/
您尚未为这些伪元素指定任何维度(在该上下文中)。这就是为什么他们没有出现。
对于具有
position: static
(默认值)的元素,top
和left
将被忽略。jsFiddle。
You haven't specified any dimensions (in that context) for those pseudo-elements. That's why they don't appear.
top
andleft
are ignored for elements withposition: static
(the default).jsFiddle.