css外边框虚线的英文

CSS外边框虚线

The CSS outline property is used to add an outline around an HTML element. By default,the outline is a solid line,but it can also be a dotted or dashed line. To create a dashed outline,use the "outline-style" property with the value "dashed". To create a dotted outline,use the "outline-style" property with the value "dotted". You can also set the width and color of the outline using the "outline-width" and "outline-color" properties. Note that the CSS outline property does not take up space on the page,so it will not affect the layout of your content. 

css外边框虚线的英文

Example:

p {
  outline-style: dashed;
  outline-width: 1px;
  outline-color: #FF0000;
}

This code sets a dashed red outline with a width of 1 pixel around all paragraphs on the page.

相关文章

Css3如何实现鼠标移上变长特效?(图文+视频)
css3怎么实现鼠标悬停图片时缓慢变大效果?(图文+视频)
jquery如何实现点击网页回到顶部效果?(图文+视频)
css3边框阴影效果怎么做?(图文+视频)
css怎么实现圆角边框和圆形效果?(图文+视频教程)
Css3如何实现旋转移动动画特效