Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在中间创建这些边界?_Html_Css - Fatal编程技术网

Html 如何在中间创建这些边界?

Html 如何在中间创建这些边界?,html,css,Html,Css,我知道如何使用图像生成圆角。但请看一下链接:- 所有四个角上的圆角都是图像,但我的问题是中间的边界是怎么做的?环绕整个div的绿色边框 教程已经给出,但它是德语的:(.我也不想使用Css3,比如-webkit border radius等,因为它们在IE中还不受支持 提前感谢:)整个过程是用4幅背景图像完成的 这是css roundbox-tr { margin:15px auto; padding:0; background:url("roundbox_tr.gif"

我知道如何使用图像生成圆角。但请看一下链接:-

所有四个角上的圆角都是图像,但我的问题是中间的边界是怎么做的?环绕整个div的绿色边框

教程已经给出,但它是德语的:(.我也不想使用Css3,比如-webkit border radius等,因为它们在IE中还不受支持


提前感谢:)

整个过程是用4幅背景图像完成的 这是css

roundbox-tr {
    margin:15px auto;
    padding:0;
    background:url("roundbox_tr.gif") no-repeat right top;
    width: 90%;
}

/* top-left corner and left side */
.roundbox-tl {
    margin:0;
    padding:0;
    background:   url("roundbox_tl.gif") no-repeat left top;
}

/* bottom-right corner and bottom side */
.roundbox-br {
    margin:0;
    padding:0;
    background:   url("roundbox_br.gif") no-repeat right bottom;
}

/* bottom-left corner */
.roundbox-bl {
    margin:0;
    padding:0;
    background:   url("roundbox_bl.gif") no-repeat left bottom;
}

整个过程是用4幅背景图像完成的 这是css

roundbox-tr {
    margin:15px auto;
    padding:0;
    background:url("roundbox_tr.gif") no-repeat right top;
    width: 90%;
}

/* top-left corner and left side */
.roundbox-tl {
    margin:0;
    padding:0;
    background:   url("roundbox_tl.gif") no-repeat left top;
}

/* bottom-right corner and bottom side */
.roundbox-br {
    margin:0;
    padding:0;
    background:   url("roundbox_br.gif") no-repeat right bottom;
}

/* bottom-left corner */
.roundbox-bl {
    margin:0;
    padding:0;
    background:   url("roundbox_bl.gif") no-repeat left bottom;
}

它们是用于边界的图像。在mozilla中使用firebug插件,并检查它们是否是用于边框的图像。在mozilla中使用firebug插件并检查它。

你是说在一个大图像中使用整个东西?但是,这是一种非常糟糕的做法。不是吗?此外,它还受到宽度和高度的限制。如果我的宽度和/或高度与url中显示的不同,该怎么办?设计一个不同的形象?这不坏吗?是的,圆角不是个好主意。你可以试试漂亮的角落。谷歌你会发现一个很好的例子。嗨,约翰,我知道他们是用4张图片(四个角)完成的。但我的问题是,你发布的css是针对四个角的。中间的边界怎么办?中上边框。如果我还不清楚的话。请让我知道。查看每张图片,注意roundbox\u br.gif和roundbox\u tr.gif。你在屏幕上看到的任何其他东西都只是用创建得很差的gif图像渲染的问题。这是使用漂亮角落的链接。这允许您仅使用css(无图像)创建圆角。它非常方便。你的意思是在一个大的图像中?但是,这是一种非常糟糕的做法。不是吗?此外,它还受到宽度和高度的限制。如果我的宽度和/或高度与url中显示的不同,该怎么办?设计一个不同的形象?这不坏吗?是的,圆角不是个好主意。你可以试试漂亮的角落。谷歌你会发现一个很好的例子。嗨,约翰,我知道他们是用4张图片(四个角)完成的。但我的问题是,你发布的css是针对四个角的。中间的边界怎么办?中上边框。如果我还不清楚的话。请让我知道。查看每张图片,注意roundbox\u br.gif和roundbox\u tr.gif。你在屏幕上看到的任何其他东西都只是用创建得很差的gif图像渲染的问题。这是使用漂亮角落的链接。这允许您仅使用css(无图像)创建圆角。它非常方便。