开发者

transparent background with 1px borders?

开发者 https://www.devze.com 2023-01-22 05:58 出处:网络
Is it po开发者_开发知识库ssible to have a div tag that has 1px black borders and a transparent background, so only the borders are showing?is this possible?Any examples?

Is it po开发者_开发知识库ssible to have a div tag that has 1px black borders and a transparent background, so only the borders are showing? is this possible? Any examples?

A really appreciate it.

Erik


The CSS:

div.emptybox {
  border: 1px solid black;
  background: transparent;
}

The HTML:

<div class="emptybox">
Hello World
</div>


It's absolutely possible.

#someDiv { border:1px solid #000; }

<div id="someDiv">The div must either have some content, or else have the height and width specified in the CSS above.</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消