日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 前端技术 > CSS >内容正文

CSS

css 科技 边框_CSS内嵌边框

發(fā)布時間:2024/3/26 CSS 47 豆豆
生活随笔 收集整理的這篇文章主要介紹了 css 科技 边框_CSS内嵌边框 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

小編典典

您可以使用box-shadow,可能是:

#something {

background: transparent url(https://i.stack.imgur.com/RL5UH.png) 50% 50% no-repeat;

min-width: 300px;

min-height: 300px;

box-shadow: inset 0 0 10px #0f0;

}

#something {

background: transparent url(https://i.stack.imgur.com/RL5UH.png) 50% 50% no-repeat;

min-width: 300px;

min-height: 300px;

box-shadow: inset 0 0 10px #0f0;

}

這樣的好處是它將覆蓋的背景圖像div,但是當(dāng)然會模糊(正如您希望從box-

shadow屬性中看到的那樣)。要建立density陰影的陰影,您當(dāng)然可以添加其他陰影:

#something {

background: transparent url(https://i.stack.imgur.com/RL5UH.png) 50% 50% no-repeat;

min-width: 300px;

min-height: 300px;

box-shadow: inset 0 0 20px #0f0, inset 0 0 20px #0f0, inset 0 0 20px #0f0;

}

#something {

background: transparent url(https://i.stack.imgur.com/RL5UH.png) 50% 50% no-repeat;

min-width: 300px;

min-height: 300px;

box-shadow: inset 0 0 20px #0f0, inset 0 0 20px #0f0, inset 0 0 20px #0f0;

}

編輯 因為我意識到,我是個白癡,忘了提供簡單的解決方案 首先 ,它是使用,否則空的子元素應(yīng)用在背景的邊界:

#something {

background: transparent url(https://i.stack.imgur.com/RL5UH.png) 50% 50% no-repeat;

min-width: 300px;

min-height: 300px;

padding: 0;

position: relative;

}

#something div {

position: absolute;

top: 0;

left: 0;

right: 0;

bottom: 0;

border: 10px solid rgba(0, 255, 0, 0.6);

}

jsfiddle.net/dPcDu/2中,您可以為其添加第4個px參數(shù),以box-shadow進(jìn)行傳播并更輕松地反映其圖像。

#something {

background: transparent url(https://i.stack.imgur.com/RL5UH.png) 50% 50% no-repeat;

min-width: 300px;

min-height: 300px;

box-shadow: inset 0 0 0 10px rgba(0, 255, 0, 0.5);

}

2020-05-16

總結(jié)

以上是生活随笔為你收集整理的css 科技 边框_CSS内嵌边框的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。