我想弄清楚如何在截圖中爲單獨的div創建一個邊框圖像,但我似乎無法找到一種方法來做到這一點。任何人都可以提供一些關於如何使這些外部邊界圖像工作的指導?如何創建非重複的外部邊界圖像?
-1
A
回答
1
這與我所能得到的儘可能接近。無需圖片:
.has_tab {
border: 1px solid #e6e6e6;
border-left: none;
width: 33.33%;
height: 300px;
box-sizing: border-box;
display: block;
float: left;
position: relative;
text-align: center;
}
.has_tab:first-child {
border-left: 1px solid #e6e6e6;
}
/* the important bit... */
.has_tab:after {
content: "";
display: block;
width: 10px;
height: 100px;
background: #FFF;
border: 1px solid #e6e6e6;
border-left: none;
border-radius: 0 20px 20px 0;
position: absolute;
top: 50%;
margin-top: -50px;
right: -11px;
}
.has_tab:last-of-type:after {
display: none;
}
<div class="has_tab">Lorem ipsum</div>
<div class="has_tab">Lorem ipsum</div>
<div class="has_tab">Lorem ipsum</div>
0
這裏是我如何做到這一點 首先你需要削減這一形象
,然後你可以使用它作爲一個元素之後
<div class="borderd-div"></div>
背景和CSS:
.borderd-div{
height: 334px;
width:334px;
border: 1px solid #f1f1f1;
position: relative;
}
.borderd-div:after{
content:" ";
display: block;
position: absolute;
width: 20px;
height: 145px;
right:-19px;
top:83px;
background: url(Djyods1.png) no-repeat 0 0;
}
相關問題
- 1. 圖像的邊界底部
- 2. 如何使用與外部區域邊界重合的位置線創建牆?
- 3. 如何使用重複圖像作爲邊界與間隙
- 4. Matlab:在圖中創建重複的邊
- 5. 如何在draw2d-js中創建一個圖像邊界半徑?
- 6. 使用C的圖像/形狀的外部邊界點#
- 7. 如何創建非重複警報?
- 8. 圖像與CSS的內部邊界?
- 9. 如何重疊圖像邊界與div邊框
- 10. 圖像邊界圖像php
- 11. CSS如何創建具有非線性邊界
- 12. 如何在Python中獲取圖像的對象輪廓(外部邊界)?
- 13. 如何爲圖像創建邊框?
- 14. 如何創建邊框圖像?
- 15. 如何在mxGraph邊緣創建圖像
- 16. 如何防止圖像在家長的邊界外縮放?
- 17. Pygame:創建邊界
- 18. 創建一個視圖的邊界框
- 19. CorePlot圖中的外邊界
- 20. IE9圖像邊界
- 21. Dojox圖表:如何在頂部和底部創建重複軸?
- 22. R水平圖刪除外部邊界(調整繪圖邊框)
- 23. 如何在Sprite Kit中創建邊界
- 24. 如何從精靈創建邊界(AndEngine)
- 25. 如何在AS3中創建邊界
- 26. 如何擺脫圖像邊界?
- 27. 如何僅重複一部分圖像?
- 28. 計算邊界圖像寬度與邊界圖像首先
- 29. Android Studio如何創建一個沒有方形邊界的圖像?
- 30. 如何設置外部元素的內部邊界?
你有任何CSS的人可以看看?無法分辨您的問題。你能更具體一點嗎? – vernak2539 2014-11-24 14:57:34
我刪除了所有無法運行的東西。那麼你看到框右側的邊框,這與div的重疊?我試圖重新創建。 – Emily 2014-11-24 15:03:51