实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
2
<html>
3
<head>
4
<style type="text/css"> 
5
div
6
{
7
border-width:15px;
8
width:250px;
9
padding:10px 20px;
10
}
11
12
#round
13
{
14
-moz-border-image:url("/images/border.png") 30 30 round; /* Firefox */
15
-webkit-border-image:url("/images/border.png") 30 30 round; /* Safari 和 Chrome */
16
-o-border-image:url("/images/border.png") 30 30 round; /* Opera */
17
border-image:url("/images/border.png") 30 30 round;
18
}
19
20
#stretch
21
{
22
-moz-border-image:url("/images/border.png") 30 30 stretch; /* Firefox */