在元素与其边框之间创建间距 [英] creating spacing between an element and its border

查看:43
本文介绍了在元素与其边框之间创建间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在元素与其最外边界之间创建一个间距.(他想在适当的元素与box-model框的外部之间做两个边界.这给了他使用余量,边界填充实现其目标的空间).到目前为止,我在Google和此处的搜索都无法解决此问题.

I'm trying to create a spacing between an element and its outermost border. ( he wants to do two borders between the element proper and the outside of the box-model box. This gives him the room of using the margin, border and padding to achieve his goal). So far my searches in Google and here produced no solution to this.

我正在努力避免使用图像来实现这一目标.

I am trying to avoid using images to acheive this.

推荐答案

我最终使用了多CSS技术(

I ended up using the multiple css technique (here), and using border-color: transparent to create a transparent spacing between the element and its border.

这篇关于在元素与其边框之间创建间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆