CSS Drop Cap:这对任何人的系统都不好吗? [英] CSS Drop Cap: Is this bad on anyone's system?

查看:77
本文介绍了CSS Drop Cap:这对任何人的系统都不好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚添加了推荐信。我们乐队网站的页面。在

a心血来潮的时候,我决定尝试使用一个下降帽开始每个段落。


我查找了如何在某人的网站上进行操作。他的例子看起来很好,但有很多像素大小。元素。我不是专家,但是我不喜欢当页面在不同的浏览器上出现乱码,或者用不同的文本大小来支付
时。


所以我在更改样式表参数时犯了错误。这就是我想出的




..cap {

float:left;

宽度:1.5ex;

字体大小:395%;

行高:1.6ex;

font-weight :正常;

颜色:#D70000;

font-family:serif;

font-style:normal;

background-image:url(bkgnd_noise.jpg);

填充:2px 2px 2px 2px;

text-align:center;

border:1px solid yellow;

margin-right:2px;

}


我在IE和Opera上试用了这个页面,以及各种文字大小。似乎

合理。有没有人看到任何真的不可接受的东西?


Greg Guarino

I just added a "Testimonial Letters" page for our band''s web site. On
a whim, I decided to try using a drop cap to start each paragraph.

I looked up how to do it on someone''s web site. His example looked
good, but had a lot of "pixel sized" elements. I''m no expert, but I
don''t like when pages go haywire on different browsers, or with
different text sizes.

So I blundered around changing the stylesheet parameters. Here''s what
I came up with:

..cap {
float: left;
width: 1.5ex;
font-size: 395%;
line-height: 1.6ex;
font-weight: normal;
color:#D70000;
font-family: serif;
font-style : normal;
background-image : url(bkgnd_noise.jpg);
padding : 2px 2px 2px 2px;
text-align : center;
border : 1px solid Yellow;
margin-right : 2px;
}

I tried out the page on IE and Opera, and at various text sizes. Seems
reasonable. Does anyone see anything really unacceptable?

Greg Guarino

推荐答案

哎呀。你们中的一些人可能会发现这个网址很有用:

www .risky-biz.com / testimonials.html

周一,2004年7月5日02:40:24 GMT,Greg G< gd ****** *@verizon.net>

写道:
Oops. Some of you might find the URL helpful:

www.risky-biz.com/testimonials.html

On Mon, 05 Jul 2004 02:40:24 GMT, Greg G <gd*******@verizon.net>
wrote:
我刚刚添加了一个推荐信。我们乐队网站的页面。一时兴起,我决定尝试使用一个下盖来启动每个段落。

我查找了如何在某人的网站上进行操作。他的例子看起来很好,但有很多像素大小。元素。我不是专家,但我不喜欢当页面在不同的浏览器上乱码,或者用不同的文字大小。

所以我在改变样式表参数。这就是我想出的:

.cap {
浮动:左;
宽度:1.5ex;
font-size: 395%;
行高:1.6ex;
font-weight:normal;
颜色:#D70000;
font-family:serif;
font-style :normal;
background-image:url(bkgnd_noise.jpg);
填充:2px 2px 2px 2px;
text-align:center;
border:1px solid yellow; <保证金权利:2px;
}
我试用了IE和Opera的页面,并且有各种文字大小。似乎合情合理。有没有人看到任何真的不可接受的东西?

Greg Guarino
I just added a "Testimonial Letters" page for our band''s web site. On
a whim, I decided to try using a drop cap to start each paragraph.

I looked up how to do it on someone''s web site. His example looked
good, but had a lot of "pixel sized" elements. I''m no expert, but I
don''t like when pages go haywire on different browsers, or with
different text sizes.

So I blundered around changing the stylesheet parameters. Here''s what
I came up with:

.cap {
float: left;
width: 1.5ex;
font-size: 395%;
line-height: 1.6ex;
font-weight: normal;
color:#D70000;
font-family: serif;
font-style : normal;
background-image : url(bkgnd_noise.jpg);
padding : 2px 2px 2px 2px;
text-align : center;
border : 1px solid Yellow;
margin-right : 2px;
}

I tried out the page on IE and Opera, and at various text sizes. Seems
reasonable. Does anyone see anything really unacceptable?

Greg Guarino






On Mon,05 Jul 2004 02:46: 38 GMT,Greg G< gd ******* @ verizon.net>写道:
On Mon, 05 Jul 2004 02:46:38 GMT, Greg G <gd*******@verizon.net> wrote:
哎呀。你们中的一些人可能会发现这个网址很有用:

www .risky-biz.com / testimonials.html

2004年7月5日星期一02:40:24 GMT,Greg G< gd ******* @ verizon。 net>
写道:
Oops. Some of you might find the URL helpful:

www.risky-biz.com/testimonials.html

On Mon, 05 Jul 2004 02:40:24 GMT, Greg G <gd*******@verizon.net>
wrote:
我刚刚添加了推荐信。我们乐队网站的页面。一时兴起,我决定尝试使用一个下盖来启动每个段落。

我查找了如何在某人的网站上进行操作。他的例子看起来很好,但有很多像素大小。元素。我不是专家,但我不喜欢当页面在不同的浏览器上乱码,或者用不同的文字大小。

所以我在改变样式表参数。这就是我想出的:

.cap {
浮动:左;
宽度:1.5ex;
font-size: 395%;
行高:1.6ex;
font-weight:normal;
颜色:#D70000;
font-family:serif;
font-style :normal;
background-image:url(bkgnd_noise.jpg);
填充:2px 2px 2px 2px;
text-align:center;
border:1px solid yellow; <保证金权利:2px;
}
我试用了IE和Opera的页面,并且有各种文字大小。似乎合情合理。有没有人看到任何真的不可接受的东西?

Greg Guarino
I just added a "Testimonial Letters" page for our band''s web site. On
a whim, I decided to try using a drop cap to start each paragraph.

I looked up how to do it on someone''s web site. His example looked
good, but had a lot of "pixel sized" elements. I''m no expert, but I
don''t like when pages go haywire on different browsers, or with
different text sizes.

So I blundered around changing the stylesheet parameters. Here''s what
I came up with:

.cap {
float: left;
width: 1.5ex;
font-size: 395%;
line-height: 1.6ex;
font-weight: normal;
color:#D70000;
font-family: serif;
font-style : normal;
background-image : url(bkgnd_noise.jpg);
padding : 2px 2px 2px 2px;
text-align : center;
border : 1px solid Yellow;
margin-right : 2px;
}

I tried out the page on IE and Opera, and at various text sizes. Seems
reasonable. Does anyone see anything really unacceptable?

Greg Guarino




几个快速评论。


1)无需对范围进行分类。它总是一个孩子,有一个班级。

那将在你的代码中保存一些字节。


..testimonial3 span { }


2)确保你的宽度能够适应你需要的任何宽度字符

在那里,无论页面恰好呈现什么衬线字体。有些可能<比如说,
比你的W更广。



A couple quick comments.

1) No need to class the span. The div it''s always a child of has a class.
That''ll save some bytes in your code.

..testimonial3 span {}

2) Be certain your width will acommodate whatever width character you need
in there in whatever serif font the page happens to render in. Some might
have a wider W, say, than yours.


" Greg G" < GD ******* @ verizon.net>写于

comp.infosystems。 www.authoring.stylesheets:
"Greg G" <gd*******@verizon.net> wrote in
comp.infosystems.www.authoring.stylesheets:
糟糕。你们中的一些人可能会发现这个网址很有用:

www .risky-biz.com / testimonials.html
Oops. Some of you might find the URL helpful:

www.risky-biz.com/testimonials.html




他们在Windows 98上的Mozilla 1.4中看起来没问题。


(起初我喜欢它们,在落地帽后面填满了斑点的黄色

背景。)


这些盒子似乎都是关于一个像素大于三条线,所以

它们下面有一个令人不舒服的大量空间,几乎是视觉上的全线b
。但同样,这是一个审美判断,所以

也许这就是你想要的,


-

Stan Brown,Oak Road Systems,美国纽约州科特兰县
http:// OakRoadSystems.com/

HTML 4.01规范: http://www.w3.org/TR/html401/

验证者: http://validator.w3.org/

CSS 2规范: http://www.w3.org/TR/REC-CSS2/

2.1更改: http://www.w3.org/TR/CSS21/changes.html

验证人: http://jigsaw.w3。 org / css-validator /



They look okay in Mozilla 1.4 on Windows 98.

(I liked them better at first, before the speckled yellowish
background filled in behind the drop cap.)

The boxes all seem to be about one pixel bigger than three lines, so
there''s an uncomfortably large amount of space under them, almost a
full line visually. But again, that''s an aesthetic judgment, so
maybe it''s what you were going for,

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/

这篇关于CSS Drop Cap:这对任何人的系统都不好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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