Add: padding-left: 20px to the select element; but it does not take effect, as shown in the following figure:
How to make the padding setting take effect on the select?
Method 1:
Set the attribute appearance:
Add attributes to select: appearance: none; -webkit-appearance: none;
The effect is as follows:
Method 2:
Set the style for select: text-indent: 20px;
The effect is as follows:
The above method of setting the padding effect in the select element is all the content shared by the editor. I hope it can give you a reference, and I hope you will support the PHP Chinese website.
For more details on how to set padding effects in select elements, please pay attention to the PHP Chinese website for related articles!