簡體   English   中英

如何在 CSS 中創建斜線

[英]How to create sloping lines in CSS

是否可以使用 css 和/或 bootstrap 4 生成這樣的圖像?

在此處輸入圖像描述

您可以使用此處所示的重復線性背景: https://css-tricks.com/stripes-css/

例如,具有與 css 中的.layer-bg class 相同的 colors 的類似模式:

 html, body { height: 100%; width: 100%; background: #cecece; }.full-size { height: 100%; width: 100%; }.layer-bg { background: repeating-linear-gradient( 100deg, #000 0, rgba(229, 206, 182, 1) 1px, rgba(229, 206, 182, 1) 5px, #000 6px, #000 18px); }
 <div class="full-size layer-bg"> </div>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM