css 2背景 [英] css 2 backgrounds

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

问题描述

我一直在阅读压倒性的傲慢回复,为什么人们需要控制他们的内容,而不必删除scoll酒吧...几年前有一项发明...它被称为宽屏幕,显示器


这个新的一块硬件我们有一种完全不同的方式来设置第二个图像应该如何与css布局交互。


如果我想创建一个1440px宽的图像,我希望图像在它的位置是绝对的,问题甚至在Fire fox中的图像宽度和高度导致页面显示2个滚动条。如果用户没有使用不透明的设置背景的分辨率来覆盖平铺图像,为什么要滚动?


我们的想法是在背景中提供不同的窗口大小内容,这样当某人在宽屏幕显示器上处于非常高的分辨率时,背景中会有一些内容。


我已经在IE和Firefox上运行不透明但现在我仍然坚持如何保持第二个背景不滚动以及因为它的大小而被剪掉初始窗口大小,不使用java脚本。


如果css在布局方面如此奇妙,为什么它与各种网络浏览器的交互方式存在很多差异......


问题是,创建一个在垂直信息需要时滚动的布局,无论是在窗框中还是全屏显示第二个背景图像,并且在垂直滚动时显示为整体,从而消除单个< DIV> 。


我很乐意接受建议,我希望引入宽屏以及人们如何设计它是对那些认为css完美的傲慢人士的清醒。 div class =h2_lin>解决方案

如果有的话,请将您的代码或链接发布到测试网站。


^ _ ^谢谢,死亡




如果css是布局中的一个奇迹,为什么它与各种各样的交互方式存在很多差异Web浏览器....



唯一有CSS问题的浏览器是Internet Explorer。所有版本的IE都落后于Web标准10年。现代浏览器,Firefox,Opera,Safari等在CSS方面的问题相对较少。


正如Death所说,没有链接或完整标记,我们只能猜出你的问题是。


现在我有这个代码

展开 | 选择 | Wrap | 行号


I''ve been reading the overwhelmingly arrogant replies to why people "need to control" their content without having to remove scoll bars... There was an invention a few years back ... it is called the "wide screen ,monitor"

With this new piece of hardware we have a entirely different way to set up how a second image should interact with a css layout.

If I want to create an image that is 1440px wide, I want to have the image be absolute in it''s position , , the problem is even in Fire fox the image width and height cause the page to display 2 scroll bars. If the user is not using a resolution of the set background which is opaque to lay over the tiled image why should it be scrolled ?

The idea is to give different window sizes content in the background so when someone is at a very high resolution on a wide screen monitor the back ground has something in it.

I have gotten the opacity to work on both IE and Firefox but now I am stuck on how to keep the second background from scrolling as well as having it clipped off because of the size of the initial window size, with out using a java script.

IF css is such a all in wonder fro layouts why is there so many differences in how it interacts with a variety of web browsers....

The problem, creating a layout that scrolls when needed on vertical information , retains the second background image in full size whether it is in the windows frame and displays as whole when scrolled vertically, eliminating horizontal scroll bar for a single <div> .

I''m open to suggestion, and I hope the introduction of the widescreen and how people are designing for it is a awake call to the arrogant folk who think css is perfect.

解决方案

Please post your code or a link to a test site if you have one.

^_^ Thanks, Death



IF css is such a all in wonder fro layouts why is there so many differences in how it interacts with a variety of web browsers....

The only browser that has issues with CSS is Internet Explorer. All versions of IE are 10 years behind web standards. Modern browsers, Firefox, Opera, Safari, etc., have relatively few issues with CSS.

As Death said, without a link or the complete markup, we can only guess what your issue is.


right now I have this code

Expand|Select|Wrap|Line Numbers


这篇关于css 2背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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