首页 > 代码库 > select文字右对齐

select文字右对齐

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>企业信息</title>
<style>
select {
direction: rtl;
}
select option {
direction: ltr;
}

</style>
</head>
<body>
<select>
<option>Foo</option>
<option>bar</option>
<option>to the right</option>
</select>

</body>
</html>

select文字右对齐