什么是CSS等价的< table bordercolor =" #ffffff"> ? [英] What's the CSS equivalent of <table bordercolor="#ffffff"> ?

查看:61
本文介绍了什么是CSS等价的< table bordercolor =" #ffffff"> ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在更新一些旧网页,并遇到了问题。我有一些表格,其中开头标签看起来像......


< table border =" 1" bordercolor =" #fffffff">


在IE中围绕桌子提供一个漂亮的扁平边框,以及相当不错的
令人不快的(IMO)3D- Firefox中的效果边框。


我试图达到和我在IE中看到的相同的效果,但在CSS中

而不是在HTML中,但可以'重现相同的边界。我尝试了

创建了一个类......


..flatborder {

border:1px;

border-color:#000000;

border-style:solid;

}


但这给了同样的我在Firefox中的3D效果。


有没有办法使用CSS让IE和FF显示漂亮的扁平边框

IE给出使用bordercolor属性? TIA


-

Alan Silver

(此行下方添加的任何内容都与我无关)

Hello,

I am updating some old web pages, and have come across a problem. I have
some tables where the opening tag looks like...

<table border="1" bordercolor="#ffffff">

which gives a nice flat border around the table in IE, and a fairly
unpleasant (IMO) 3D-effect border in Firefox.

I am trying to achieve the same effect as I see in IE, but in CSS
instead of in HTML, but can''t reproduce the same border. I tried
creating a class like...

..flatborder {
border: 1px;
border-color: #000000;
border-style: solid;
}

But this gave the same 3D-effect that I had in Firefox.

Is there a way to use CSS to get IE and FF to show the nice flat border
that IE gives with the bordercolor attribute? TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

推荐答案

Alan Silver写道:
Alan Silver wrote:
我正在更新一些旧网页,并遇到了一个问题。我有一些表格,其中开头标签看起来像......

< table border =" 1" bordercolor =" #ffffff">

在IE中围绕桌子提供了一个漂亮的平面边框,在Firefox中提供了一个相当令人不愉快的(IMO)3D效果边框。

我试图达到和我在IE中看到的相同的效果,但是在CSS中而不是在HTML中,但是不能重现相同的边框。我试过创建一个像......这样的课程。

.flatborder {
border:1px;


使边框宽度:1px;

border-color:#000000;
border-style:solid;
}

但是这给了我在Firefox中的3D效果。


它是否仍然使用边框宽度而不是边框​​?

有没有办法使用CSS让IE和FF显示出漂亮的平面边框
IE给出bordercolor属性? TIA
I am updating some old web pages, and have come across a problem. I have
some tables where the opening tag looks like...

<table border="1" bordercolor="#ffffff">

which gives a nice flat border around the table in IE, and a fairly
unpleasant (IMO) 3D-effect border in Firefox.

I am trying to achieve the same effect as I see in IE, but in CSS
instead of in HTML, but can''t reproduce the same border. I tried
creating a class like...

.flatborder {
border: 1px;
Make that border-width:1px;
border-color: #000000;
border-style: solid;
}

But this gave the same 3D-effect that I had in Firefox.
Does it still do that with border-width instead of border?
Is there a way to use CSS to get IE and FF to show the nice flat border
that IE gives with the bordercolor attribute? TIA




我在陈述边框风格时从未见过3D边框:坚固;


-

Els http://locusmeus.com/

可访问的网页设计: http://locusoptimus.com/


现在播放:King Crimson - Lizard



I''ve never seen 3D borders when stating border-style:solid;

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: King Crimson - Lizard


Alan Silver< al ********* @ nospam.thanx.invalid>写道:
Alan Silver <al*********@nospam.thanx.invalid> wrote:
.flatborder {
.flatborder {




这适用于类flatborder中的元素。你还没有指定任何包含任何类属性的标记。


可能是你在< table>上应用了某些东西。

元素你实际上也需要将它应用于表格单元格。


提示:指定URL。这节省了很多人的时间,你知道,

每个人都很忙。


-

Yucca , http://www.cs.tut.fi/~jkorpela/


>> .flatborder {
>> .flatborder {

这适用于类flatborder中的元素。您尚未指定任何包含任何类属性的标记。


不,我展示了没有任何CSS的HTML。这个课程是我想要做的事情的一个例子。我认为它很适合

很明显它适用于< table>标签,因为那是唯一的标签

我展示了。


对不起,如果我不清楚。

赔率是您正在将某些内容应用于< table>
你实际上也需要将它应用于表格单元格。


好​​吧,如果我理解正确的话,边框是表格的一部分,而不是单元格的b $ b。继续HTML属性的工作方式,边界和和

" bordercolor" (现在已经过时了)两个都进入< table>标签产生我描述的

效果。

提示:指定URL。它节省了很多人的时间,你知道,
每个人都很忙。

That applies to an element in class "flatborder". You have not
specified any markup that contains any class attribute.
Nope, I showed the HTML that I had without any CSS. This class was an
example of the sort of thing I wanted to do. I assumed it was fairly
obvious that it was to apply to the <table> tag as that was the only tag
I showed.

Sorry if I wasn''t clear.
The odds are that you are applying something to a <table> element when
you would in fact need to apply it to table cells as well.
Well, if I understand correctly, the border is part of the table, rather
than the cell. Going on the way HTML attributes work, "border" and
"bordercolor" (now obsolete) both went on the <table> tag to produce the
effect I described.
Hint: specify the URL. It saves a lot of everyone''s time, and you know,
everyone is busy.




我知道,这就是帖子的原因简短而且(希望)到了这一点。我没有这个网站的URL,因为有问题的HTML / CSS是如此简短,我没有看到任何创建的需要一个示例页面并找到一个地方

可以免费上传它。


显然我会提供一个更复杂的URL。


Ta ra


-

Alan Silver

(此行下方添加的任何内容均无与我合作)



I know, that''s why the post was short and (hopefully) to the point. I
don''t have an URL for this site, and as the HTML/CSS in question was so
short, I didn''t see any need to create a sample page and find somewhere
free to upload it just for this.

Obviously I would provide an URL for something more complex.

Ta ra

--
Alan Silver
(anything added below this line is nothing to do with me)


这篇关于什么是CSS等价的&lt; table bordercolor =&quot; #ffffff&quot;&gt; ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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