CSS宽度问题 [英] CSS Width Problem

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

问题描述

您好,

我在编写此页面的CSS时遇到问题:

http://www.inforquali.pt/inforquali_novo/index4.html


Do你看到那根网线?它应该在窗口大小的作用下增长。


但是我不明白我的CSS失败了。我错过了什么

明显吗?或者有必要进行某种黑客行为?或者现在只能用CSS来实现这个目的?


链接CSS: http://www.inforquali.pt/inforquali_...les/class3.css


PS:代码必须保持严格,并且在IE和FF中给出

相等的结果。


任意非常欢迎!

Hi there,

I having trouble programming the CSS for this page:

http://www.inforquali.pt/inforquali_novo/index4.html

Do you see that network cable? It is supposed to grow in function of
the size of the window.

But I do not understand where my CSS fails. Am I missing something
obvious? Or it will be necessary some sort of hack? Or it is
impossible at this moment to make this only with CSS?

link for the CSS: http://www.inforquali.pt/inforquali_...les/class3.css

PS: It is necessary that the code remains Strict and that it gives
equal results in IE and FF.

Any help very welcome!

推荐答案

AndréRodrigues写道:
André Rodrigues wrote:
你好,

我有编程此页面的CSS时遇到问题:

http: //www.inforquali.pt/inforquali_novo/index4.html

你看到那根网线吗?它应该在窗口大小的作用下增长。
Hi there,

I having trouble programming the CSS for this page:

http://www.inforquali.pt/inforquali_novo/index4.html

Do you see that network cable? It is supposed to grow in function of
the size of the window.




但是你要求它是100%的窗口宽度,从左边开始650px

- 浏览器正在按照你的要求进行操作,向右延伸一个

对应的650px。


我的尝试:

http://tranchant.plus .com / tmp / cabo


-

马克。
http://tranchant.plus.com/



But you''ve asked for it to be 100% of the window width, starting 650px
from the left - the browser is doing what you ask, extending it a
corresponding 650px to the right.

My attempt:

http://tranchant.plus.com/tmp/cabo

--
Mark.
http://tranchant.plus.com/


AndréRodrigues写道:
André Rodrigues wrote:

http:// www.inforquali.pt/inforquali_novo/index4.html

你看到那根网线吗?它应该在窗口大小的作用下增长。

http://www.inforquali.pt/inforquali_novo/index4.html

Do you see that network cable? It is supposed to grow in function of
the size of the window.



正如马克指出的那样,它正在做你告诉它要做的事情。你将

的位置定义为绝对位置,所以不管周围发生了什么
,图像都不会到达任何地方。

BTW:下划线是非法的CSS标识符。有些浏览器会忽略这些。


-

jmm dash list(at)sohnen-moe(dot)com

(删除.AXSPAMGN for email)


As Mark pointed out it is doing what you told it to do. You defined the
position as absolute so the image is not going anywhere regardless of what
happens around it.
BTW: underscores are illegal in CSS identifiers. Some browsers ignore such.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


jmm-list-gn< jm *************** @ sohnen-moe.com>写道:
jmm-list-gn <jm***************@sohnen-moe.com> wrote:
BTW:下划线在CSS标识符中是非法的。


Nope: http://www.w3.org/Style/css2-updates...12-errata.html

有些浏览器会忽略这样的。
BTW: underscores are illegal in CSS identifiers.
Nope: http://www.w3.org/Style/css2-updates...12-errata.html
Some browsers ignore such.




没什么相关的。


-

Spartanicus



Nothing relevant.

--
Spartanicus


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

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