CSS Float定位问题 [英] CSS Float Positioning Question

查看:79
本文介绍了CSS Float定位问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的问题的功能部分

展开 | 选择 | Wrap | 行号

解决方案


这是我的问题的功能部分

展开 | 选择 | Wrap | Line数字


因为图像占用了该空间作为正常流量的一部分。要将其从正常流程中移除,您可以向左浮动图像。


为了好玩,向左浮动图像但从div中移除position:absolute,看看你是否喜欢它。 / blockquote>


你有一个页面的链接?所以它突然出现在你想要的地方吗?


Aric



我一直在测试它本地,真的没有发布到任何地方,但我可以,如果这是重要的。

是的,它只是没有弹出我想要的地方。我可以用绝对术语来定位它,但我在示例中没有这样做,因为我想要做的就是将它放置在左上角与图像的左上角相同。


Here is the functional part of my problem

Expand|Select|Wrap|Line Numbers

解决方案

Here is the functional part of my problem

Expand|Select|Wrap|Line Numbers


Because the image occupies that space as part of the normal flow. To remove it from the normal flow, you can float the image left.

For fun, float the image left but remove position:absolute from the div and see if you like it.


You got a link to the page? So it''s popping up just not where you want it too?

Aric

I''ve been testing it locally, really didn''t post it anywhere but I can if that''s important.
Yes, it''s just not popping up where I want it. I can position it in absolute terms, but I didn''t do that in the example, because what I want to do is position it so that the upper top left corner is the same as that of the image.


这篇关于CSS Float定位问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆