Probably not possible. . The outline attribute only needs outline-width outline-style outline-color, and under webkit there is also outline-offset
For this kind of problem, you can F12 to see what attributes are available You can also check MDN https://developer.mozilla.org/en-US/docs/Web/CSS/outline
Probably not possible. .
The outline attribute only needs outline-width outline-style outline-color, and under webkit there is also outline-offset
For this kind of problem, you can
F12 to see what attributes are available
You can also check MDN https://developer.mozilla.org/en-US/docs/Web/CSS/outline
No. But you can put
outline: none;
and then setborder
to achieve that.You can use the border attribute to achieve similar effects
Of course not supported.
Black magic time: You can use cropping to cut off the sides where the outline overflows...
Crops include
overflow:hidden
,clip
. There is alsoclip-path
that is newer, but it seems that chrome has stopped supporting it.https://jsfiddle.net/4npvyfn8/3/
Because it is black magic, it doesn’t matter if the code is beautiful or not=w=
No, try outline:solid
Outline looks very similar to border settings, but outline cannot declare the style of a single side like border.
In fact, you can wrap another layer of p outside the content and set a border.
You can use
box-shadow
to simulatehttps://jsfiddle.net/4npvyfn8/5/