[英]How to select option value with css?
I'm trying to select an option value. 我正在尝试选择一个选项值。 Page 10
in 1 of 10
but can't find the selector. 第10
页, 1 of 10
页1 of 10
但无法找到选择器。 There are 3 things I want to do. 我想做三件事。
Move it down the page slightly. 稍微向下移动页面。
Remove the yellow box decoration 取下黄色框装饰
Put an inner box shadow. 放一个内盒阴影。
Tried: 尝试:
.pager{box-shadow: inset 0px 0px 7px;}
This selected it and the area around it, when I just want it. 当我想要它时,它选择它和它周围的区域。
</div>
<div class="pager">
<form class="awpcp-pagination-form"
method="get">
<table>
<tbody>
<tr>
<td>1</td>
<td>
<select name="results">
<option value="5">5</option>
<option value="10"
selected="selected">10</option>
You must use jquery
with removeClass
and addClass
with name select
and you style : 你必须使用带有removeClass
和addClass
jquery
,并select
名称和样式:
.select{
//your style to mark it it selecting
}
If you can only use css, you can read more : https://www.w3schools.com/cssref/css_selectors.asp 如果你只能使用css,你可以阅读更多: https : //www.w3schools.com/cssref/css_selectors.asp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.