为什么style =" position ....不工作? [英] Why is style="position.... not working?

查看:108
本文介绍了为什么style =" position ....不工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个上传表单,上传图片并将其相对于另一个图片放置。它在它自己的网页上工作正常,但是当我将它添加到网站时,我的所有定位都被忽略了。这是在IE和Firefox中,并且具有绝对和相对定位。

我把它归结为这一行:

I have an upload form that uploads a picture and places it relative to another image. It works fine on it''s own web page, but when I add it the website, all my positioning is disregarded. This is in IE and Firefox, and with both absolute and relative positioning.
I boiled it down to this line:

展开 | 选择 | Wrap | 行号

推荐答案

LELE7,


您可能需要查看规范并进行更深入的阅读。


文件 http://www.w3.org / TR / xhtml1 是一个很好的起点,因为它是直接来自W3.ORG的XHTML1规范。


希望是有帮助。那里可能有很强的线索。


好​​运解决问题!


Oralloy
LELE7,

You probably need to go to the spec and read a little more in depth.

The document http://www.w3.org/TR/xhtml1 is a good place to start, as it''s the XHTML1 specification directly from W3.ORG.

Hopefully that helps. There''s likely a strong clue in there.

Good luck resolving things!

Oralloy


你正在玩的那一行是doctype这是所有现代网页所必需的。如果它没有它,它告诉我你最初创建没有它的页面。 doctype是您告诉用于创建页面的浏览器的一组规则。更改文档类型,更改规则。


但是没有链接或完整标记,我们所说的任何其他内容都只是猜测。
That line your are playing with is the doctype which is required for all modern web pages. If it works without it, that tells me you originally created the page without it. The doctype is the set of rules you are telling the browser you are using to create the page. Change the doctype, change the rules.

But without a link, or the complete markup, anything else we say is just a wild guess.


@drhowardddrfine,


这是陈述DOCTYPE含义的完美方式。我已经完成了techie试图描述它,这就是我发布链接的原因。


谢谢!
@drhowardddrfine,

That''s a perfect way of stating the meaning of DOCTYPE. I''d have gone completely techie trying to describe it, which is why I posted the link.

Thanks!


这篇关于为什么style =" position ....不工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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