0

I want to put a boder colored onto a textbox, but the color i get is too intense and opaque:

I get this border:

enter image description here

I want something like this:

enter image description here

My simple ccs is:

.highlitedborder
{
   border: 2px solid orange;
}

Thank you.

4

3 回答 3

5
border: 1px solid rgba(255, 0, 0, .5);

The last alpha value (0.5) can be seen as opacity.

By the way, what u see in the image is not border. It is closer to box-shadow (that effect is created by browser in some case)

box-shadow: 0 0 4px orange;
于 2012-11-19T12:25:44.407 回答
2

This part is not the border. It is the outline. You may change it to change it it like

    .highlitedborder
{
   outline-color: your color...or your style;
}
于 2012-11-19T12:29:00.763 回答
0
border: 1px solid #e68200

This can help you

于 2012-11-19T12:31:33.873 回答