1

通常您可以使用左键功能选择文本

例子

我在此站点上工作,无法在页面顶部区域选择文本。

代码有什么问题?

HTML:链接

CSS:链接

4

3 回答 3

3

页脚位于文本顶部。只需删除position:absolute表格#footer

编辑:

我无法复制您的问题,因为我的解决方案有效。在这里你可以看到

在这里它正在工作

于 2013-04-27T09:44:10.767 回答
2

I right clicked the offending text in firefox and used the "inspect element" option, which helpfully tells me what element is sitting directly below the mouse.

Your #footer div is sitting ontop of the text, due to having position:absolute; set with no actual positioning.

If you remove the position:absolute; from #footer and reposition it properly, your problem should go away.

Related note:
I notice that the way you're handling positioning content on the page is a bit weird - you're using position:absolute for nearly everything?
It's outside of the scope of this answer but seriously consider moving away from this -- it's causing this problem and will probably give you a headache in future. That thing you're doing where the contents of your footer have massive margins to push them further down the page past the content? That's an unstable solution and a good sign that your layout has gone wrong somewhere. This is a fairly simple layout and can be handled fine by basic flow control like floats...

于 2013-04-27T09:47:57.827 回答
1

The footer div blocks the text so only the upper part is unselectable. You might want to change your layout or structure of your html and css to avoid blocking the text.

Take a look at this: Blockages

于 2013-04-27T09:50:04.047 回答