This article is about how to use pure CSS to beautify select? CSS beautification Select Code implementation, there is a certain reference value, the need for friends can refer to, I hope to help you.
As follows:
body {font-size:20px;color: #090; Background-color: #eee; text-align:center;}. Select {Display:inline-block;width:300px;position:relative;vertical-align:middle;padding:0;overflow:hidden; Background-color: #fff; color: #555; border:1px solid #aaa; Text-shadow:none;border-radius:4px;transition:box-shadow 0.25s Ease;z-index:2;}. select:hover {box-shadow:0 1px 4px rgba (0, 0, 0, 0.15);}. Select:before {content: "";p osition:absolute;width:0;height:0;border:10px solid transparent;border-top-color: #ccc; Top:14px;right:10px;cursor:pointer;z-index:-2;}. Select Select {cursor:pointer;padding:10px;width:100%;border:none;background:transparent;background-image:none;- Webkit-appearance:none;-moz-appearance:none;}. Select Select:focus {outline:none;}