【发布时间】:2019-04-16 17:42:28
【问题描述】:
代码如下 -
body {
background-color: white;
}
#background {
position: fixed;
top: 0px;
left: 0px;
width: 50%;
height: 100%;
background-color: black;
z-index: 1;
}
#content {
position: relative;
z-index: 2;
padding: 30px;
text-align: center;
font-weight: bold;
color: red;
font-family: Arial, sans-serif;
}
我怎样才能用 CSS 做到这一点?
附:我不能使用背景图片,因为折线可以不同(点会有不同的坐标)。
【问题讨论】:
标签: html css background polyline