帮助CSS背景 [英] Help With CSS Backgrounds

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

问题描述

首先,我必须告诉你们,对于我这个年纪的孩子,你有多大的帮助。人们从字面上给了我上一次解决问题的代码。


这是我的问题。


我想养成这个习惯使用CSS与HTML(很快将成为XHTML),它很顺利。我正在用页面创建阴影效果,所以看起来内容浮动在一个盘子上,你可能已经在网络上看到了这一点。因此,我有一个800像素宽,10像素高的图像,白色,两边都有渐变/阴影,绿色条形成页面右侧的辅助内容区域。这是图像。
这里


还有另一张图片可以在页面顶部形成一个白色栏,最终会有一个标题。该图片为此处

(请忽略文字!)


其实这是我的问题


第一张图片在页面上重复出现。但第二个图像没有正确显示在顶部,很好。让我解释。这是我的Css代码。

First I have to tell you guys how much of a help you are to a kid my age. People literally gave me the code to solve my problem last time.

Here is my problem.

I am trying to get into the habit of using CSS with HTML (soon to be XHTML) and it is going pretty well. I am creating the shadow effect with a page so it looks like the content is floating on a plate, you have probably seen this all over the web. So I have a 800 pixel wide by 10 pixel tall image that is white with a gradient/shadow on both edges and a green bar to make a secondary content area on the right of the page. Here is the image.
Here

There is another image that should make a white bar across the top of the page that will eventualy hold a title. That image is here
(Please Ignore the text!)

Actually Here Is My Problem

The First image is repeating itself down the page nicely. But the second image does not display at the top correctly, well sorta. Let me explain. Here is my Css code.

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号

推荐答案


首先,我必须告诉你们,对于我这个年纪的孩子,你有多少帮助。
First I have to tell you guys how much of a help you are to a kid my age.



您在技术论坛上发布的内容比一半人更连贯。

You write more coherently than half the people that post on technical forums.


我试图养成使用CSS和HTML(很快就是XHTML)的习惯
I am trying to get into the habit of using CSS with HTML (soon to be XHTML)



我不会关心XHTML。 IE没有认出来,很可能你没有这样做。


我正在对我的开发计算机进行重大升级,24小时后即将开始更新,所以我不知道什么时候能够看到这个。

I would not concern myself with XHTML. IE doesn''t recognize it and chances are you aren''t serving it as such.

I''m doing a major upgrade to my dev computer, coming up on 24 hours of updates, so don''t know when I''ll be able to look at this.



你写的比一半更连贯在技​​术论坛上发帖的人
You write more coherently than half the people that post on technical forums.



谢谢!,我不这么认为。这里有一些相当聪明的人。


见Ya,

Matt

Thanks!, I don''t think so though. There are some pretty smart people here.

See Ya,
Matt


嘿这只是一个简单的更新。我已经复制了2次css和html文件并将它们放在服务器上有两个原因。一个是具有空间而另一个在800和px之间没有空间。另一个是我可以编辑原版,看看我是否能找到自己的芒果。


点击这里是带空格的那个

这里为没有他们的人。


谢谢,

马特(完全难倒的)
Hey this is just a simple update. I have duplicated the css and html files 2 times and put them on the server for 2 reasons. One is that one has the space and another has no space inbetween the 800 and px. The other is so I can edit the original to see if I can find the awnser myself.

Click here for the one with the spaces
And here for the one without them.

Thanks,
Matt (The throughly stumped one)


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

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