我有CSS:
.custom-select::after {
content: "?";
padding: 12px 8px;
position: absolute;
right: 20px;
top: 8px;
z-index: 1;
text-align: center;
width: 10%;
height: 100%;
pointer-events: none;
}
它創建一個箭頭:
箭
我想讓它更寬。我怎么能只用 css 來做到這一點?
uj5u.com熱心網友回復:
只需將? 更改為﹀。
.custom-select::after {
content: "﹀";
padding: 12px 8px;
position: absolute;
right: 20px;
top: 8px;
z-index: 1;
text-align: center;
width: 10%;
height: 100%;
pointer-events: none;
}
使用 css變換比例屬性的另一個答案
transform: scale(2,1);
/* Change the scale as needed*/
其中第一個引數是水平拉伸,第二個引數是垂直拉伸。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/401317.html
上一篇:什么是CSS注入以及如何防止它?
