如何模仿1像素厚的线? [英] How to imitate a line 1 pixel thick?

查看:82
本文介绍了如何模仿1像素厚的线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< hr style =" height:1px" /不适合,因为虽然一行显示

就像它有1个像素但上面和下面有空格

行。可以看到旁边放置两个HR元素。

< hr style =" height:1px" />

< hr style =" height: 1px" />

我也试过< div style =" height:1px; font-size:1px; background-

color:black;"> ;< / divbut一条线是2像素厚:(


帮助,如果可以的话。

Mykola
http://marss.co.ua

解决方案

Scripsit marss:


我尝试通过html元素绘制一个圆圈。



为什么你在第一次发帖时没有这么说呢?这样可以节省每个人的时间。这是徒劳的。如果你想要一个圆圈,使用

图像。


-

Jukka K. Korpela(Yucca)
< a rel =nofollowhref =http://www.cs.tut.fi/~jkorpela/target =_ blank> http:// www.cs.tut.fi/~jkorpela/




Jukka K. Korpela写道:


我尝试通过html元素绘制一个圆圈。



为什么你在第一次发帖时没有这么说?这样可以节省每个人的时间。这是一种无用的练习。如果你想要一个圆圈,请使用

图像。



hum ... image ...这是什么?




marss写道:


Jukka K. Korpela写道:


我尝试通过html元素绘制一个圆圈。



为什么你在第一次发帖时没有这么说?这样可以节省每个人的时间。这是一种无用的练习。如果你想要一个圆圈,请使用

图像。



哼...图片......这是什么?



其中一张照片。

换句话说,画一张图片/图片(图片中)

编辑程序,如photoshop),然后将其插入/插入

您的页面。您可能只是将它用作CSS中的背景图像,而不仅仅是用于解密的CSS。

-

问候乍得。 http://freewebdesign.awardspace.biz


<hr style="height:1px"/does not fit because although a line looks
like it has 1 pixel with but there are empty spaces above and below
line. It can be seen if place two HR elements beside.
<hr style="height:1px"/>
<hr style="height:1px"/>
I tried also <div style="height:1px;font-size:1px;background-
color:black;"></divbut a line was 2 pixel thick :(

Help, if you can.
Mykola
http://marss.co.ua

解决方案

Scripsit marss:

I try to draw a circle by means of html elements.

Why didn''t you say so in your first posting? That would have saved
everyone''s time. It''s an exercise in futility. If you want a circle, use an
image.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Jukka K. Korpela wrote:

I try to draw a circle by means of html elements.


Why didn''t you say so in your first posting? That would have saved
everyone''s time. It''s an exercise in futility. If you want a circle, use an
image.

hum... image... What is it?



marss wrote:

Jukka K. Korpela wrote:

I try to draw a circle by means of html elements.

Why didn''t you say so in your first posting? That would have saved
everyone''s time. It''s an exercise in futility. If you want a circle, use an
image.


hum... image... What is it?

One of those picture things.
In other words, draw an image / picture of a sircle (in an image
editing program such as photoshop), and then include / insert it in to
your page. You should probably just use it as a background image in
the CSS as it''s for dederation only.
--
Regards Chad. http://freewebdesign.awardspace.biz


这篇关于如何模仿1像素厚的线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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