編碼的世界 / 優質文選 / 生涯

CSS div斜線傾斜45度


2021年9月21日
-   

CSS div斜線傾斜45度  
div的樣式:  
.line-div{
width: 12rem;
height: 4rem;
border-bottom: 0.15rem solid #dcdcdc;
/* border: 2px solid #000000; */
position: absolute;
text-align: center;
margin-left: 50%;
margin-top: -10rem;
-webkit-transform: rotate(25deg);
-moz-transform: rotate(25deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=0.45);
}

熱門文章