Home > Web Front-end > CSS Tutorial > CSS3 tutorial-border-image property

CSS3 tutorial-border-image property

黄舟
Release: 2016-12-27 16:04:56
Original
1694 people have browsed it

Today, Sister Cui'er will explain to you the CSS3 tutorial-the last attribute of the border: the border-image attribute. This article mainly introduces the definition and usage of this attribute, hoping to help students who need help in front-end development work.

Look at a specific example:

Specify the image as a border surrounding the div element:

div
{
-webkit-border-image:url(border.png) 30 30 round; /* Safari 5 */
-o-border-image:url(border.png) 30 30 round; /* Opera */
border-image:url(border.png) 30 30 round;
}
Copy after login

Browser support:

CSS3 tutorial-border-image property

Internet Explorer 11, Firefox, Opera 15, Chrome and Safari 6 support the border-image attribute.

Safari 5 supports an alternative -webkit-border-image attribute.

Definition and usage:

border-image property is a shorthand property used to set the following properties:

border-image-source;

border -image-slice;

border-image-width;

border-image-outset;

border-image-repeat;

If value is omitted , its default value will be set.

Tip: Please use border-image-* properties to construct beautiful scalable buttons!

CSS3 tutorial-border-image property

Possible values:

CSS3 tutorial-border-image property

The above is the content of CSS3 tutorial-border-image attribute, more related content Please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template