HR标签的CSS值对是什么? [英] What are the CSS value pairs for HR tag?

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

问题描述

我想这样做


< hr noshade size =" 5"宽度= QUOT; 80%">用CSS代替HTML。


我试试


< style type =" text / css">


HR {size:5px;宽度:80%;长度:5px;身高:5px;

border-style:padding:0}


< / style>


但是他们都没有工作!请帮忙。谢谢!

解决方案

RC写道:

我想做什么

< hr noshade size =" 5"宽度= QUOT; 80%">使用CSS而不是HTML。

我尝试

< style type =" text / css">
HR {size:5px;宽度:80%;长度:5px;身高:5px;
border-style:padding:0}
< / style>

但它们都不起作用!请帮忙。谢谢!




hr {width:80%; height:5px; border-bottom:5px solid green;}



hr {width:80%;身高:5px;颜色:绿色;背景颜色:绿色; border:none;}

-

Els
http://locusmeus.com/

Sonhos VEM。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -


RC< ra ********** @ noaa.gov>写道:

我想做什么

< hr noshade size =" 5"宽度= QUOT; 80%">使用CSS而不是HTML。

我尝试

< style type =" text / css">

HR {size:5px ;宽度:80%;长度:5px;身高:5px;
边框式:填充:0}

< / style>

但它们都不起作用!请帮忙。谢谢!




您是否阅读过CSS规范?


宽度和高度是CSS属性。

border-style是一个CSS属性,但是padding不是

border-style的有效值。

大小和长度不是CSS属性。


HR是HTML中的一个有趣元素,浏览器在如何将它们视为CSS盒子方面有所不同。


宽度:80%;

身高:5px;

border-style:solid;

border-color:#9D9DA1;

背景:#9D9DA1;


将生成一个看起来与html< hr noshade相同的小时数

size =" 5"宽度= QUOT; 80%">在IE中与Mozilla非常相似,并且

Opera。


Steve


-

我的理论给你起见,我的异端邪说你们,

我从不回信,你不喜欢我的领带。 - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>


RC于2004年11月在comp.infosystems上写道。 www.authoring.stylesheets:

我试试

< ; style type =" text / css">

HR {size:5px;宽度:80%;长度:5px;身高:5px;
边框式:填充:0}

< / style>

但它们都不起作用!请帮忙。谢谢!




你不能只发明css属性!


大小和长度不是小时的CSS

border-style:填充语法不正确


试试这个:


hr {width:80%; height:25px; color :绿色;

border-style:solid; padding:0;}


作品测试IE6


- -

Evertjan。

荷兰。

(请在我的电子邮件地址中将x'变为点数)


I want to do

<hr noshade size="5" width="80%"> by use CSS instead HTML.

I try

<style type="text/css">

HR { size: 5px; width: 80%; length: 5px; height: 5px;
border-style:padding: 0}

</style>

But none of them work! Please help. Thanks!

解决方案

RC wrote:

I want to do

<hr noshade size="5" width="80%"> by use CSS instead HTML.

I try

<style type="text/css">
HR { size: 5px; width: 80%; length: 5px; height: 5px;
border-style:padding: 0}
</style>

But none of them work! Please help. Thanks!



hr{width:80%;height:5px;border-bottom:5px solid green;}
or
hr{width:80%;height:5px;color:green;background-color:green;border:none;}
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -


RC <ra**********@noaa.gov> wrote:

I want to do

<hr noshade size="5" width="80%"> by use CSS instead HTML.

I try

<style type="text/css">

HR { size: 5px; width: 80%; length: 5px; height: 5px;
border-style:padding: 0}

</style>

But none of them work! Please help. Thanks!



Have you read the CSS specs?

width and height are CSS properties.
border-style is a CSS property, but padding is not a valid value for
border-style.
size and length are not CSS properties.

HR is a funny element in HTML terms and browsers differ on how they
treat it as a CSS box.

width: 80%;
height: 5px;
border-style: solid;
border-color: #9D9DA1;
background: #9D9DA1;

will produce an hr that looks identical to the html <hr noshade
size="5" width="80%"> in IE and very similar to it in Mozilla and
Opera.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


RC wrote on 11 mei 2004 in comp.infosystems.www.authoring.stylesheets:

I try

<style type="text/css">

HR { size: 5px; width: 80%; length: 5px; height: 5px;
border-style:padding: 0}

</style>

But none of them work! Please help. Thanks!



you cannot just invent css properties!

size and length are not css for hr
border-style:padding is incorrect syntax

try this:

hr {width:80%;height:25px;color:green;
border-style:solid;padding:0;}

works tested IE6

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


这篇关于HR标签的CSS值对是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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