<!DOCTYPE>和CSS滚动条 [英] <!DOCTYPE> and CSS Scroll bar
问题描述
这就是困境:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"
" http://www.w3.org/TR/html4/loose.dtd">
< head>
< title> Text< / title>
< link href =" styles / default.css"的rel ="样式表" type =" text / css">
< / head>
< body>
< p> text< / p>
< / body>
< / html>
并且在styles / default.css中,我有这个:
body {
scrollbar-face-color:#123456
//更多滚动条属性
// ...
}
但是,滚动条不起作用。然后我取消了DOCTYPE,它就是b $ b工作了,但身体都搞砸了......有人能告诉我什么是
正在进行并提供可能的选择?谢谢。
Here''s the dilemma:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Text</title>
<link href="styles/default.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>text</p>
</body>
</html>
And in "styles/default.css", I have this:
body {
scrollbar-face-color: #123456
// more scrollbar properties
// ...
}
But, the scrollbar doesn''t work. Then I took the DOCTYPE off, and it
worked, but the body was all messed up... Could someone tell me whats
going on and a offer a possible alternative? Thanks.
推荐答案
Numerator写道:
The Numerator wrote:
body {
滚动条-face-color:#123456
但是,滚动条不起作用。
body {
scrollbar-face-color: #123456
But, the scrollbar doesn''t work.
我不认为它是一个问题。值得庆幸的是,我首先使用的浏览器并不支持
支持滚动条样式。 :-)
帮助您的访客一个人,只留下他们的浏览器UI,嗯?
-
回复电子邮件地址是一个无底的垃圾邮件桶。
请回复群组,以便每个人都可以分享。
I don''t see it as a problem. Thankfully I use a browser that doesn''t
support scrollbar styling in the first place. :-)
Do your visitors a favor and leave their browser UI alone, eh?
--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
当城市睡觉时,分子(al*********@gmail.com)狂热
键入...
While the city slept, The Numerator (al*********@gmail.com) feverishly
typed...
这就是困境:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"
Here''s the dilemma:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
[...]
现在是21世纪......尝试严格 ;-)
干杯,
Nige
-
Nigel Moss http://www.nigenet.org.uk
邮件地址将反弹。 ni***@DOG.nigenet.org.uk |带上狗。 out!
你妈妈吃了我的狗!,不是他全部!
[...]
It is now the 21st Century... try "Strict" ;-)
Cheers,
Nige
--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. ni***@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"
2006年3月25日14 :19:33-0800,The Numerator < al ********* @ gmail.com>
写道:
On 25 Mar 2006 14:19:33 -0800, "The Numerator" <al*********@gmail.com>
wrote:
这就是困境:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"
" http://www.w3.org/TR/html4/loose.dtd" >
< head>
< title>文字< / title>
< link href =" styles / default.css"的rel ="样式表" type =" text / css">
< / head>
< body>
< p> text< / p>
< / body>
< / html>
在styles / default.css中,我有这个:
body {
scrollbar-face-color :#123456
//更多滚动条属性
// ...
但是,滚动条不起作用。然后我关闭了DOCTYPE,它工作了,但是身体都搞砸了......
我觉得我没见过任何浏览器那可能搞乱< p>文字< / p>
您使用的是什么尺寸的窗口,这会产生一个滚动条?
有人能告诉我什么
继续
你是(a)使用Internet Explorer和(b)做其他事情
没有告诉我们。
和一个可能的替代品?
Here''s the dilemma:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Text</title>
<link href="styles/default.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>text</p>
</body>
</html>
And in "styles/default.css", I have this:
body {
scrollbar-face-color: #123456
// more scrollbar properties
// ...
}
But, the scrollbar doesn''t work. Then I took the DOCTYPE off, and it
worked, but the body was all messed up...
I don''t think I''ve met any browser that could mess up <p>text</p>
And what size window are you using that this produces a scroll-bar?
Could someone tell me whats
going on
You''re (a) using Internet Explorer and (b) doing something else you
haven''t told us.
and a offer a possible alternative?
二:(1)Opera(2)Firefox。
哦,不要费心去设置滚动条样式。
-
Stephen Poley
< a rel =nofollowhref =http://www.xs4all.nl/~sbpoley/webmatters/target =_ blank> http://www.xs4all.nl/~sbpoley/webmatters/
这篇关于<!DOCTYPE>和CSS滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!