小编use*_*594的帖子

Select alt attribute of a images

I have

   <div id="aa">
   <img src="." height="17" alt="example1" title="">
       <table>
            <tbody><tr>
              <th></th>
              <td></td>
       </tbody>
       </table>


   <img src="." height="17" alt="example2" title="">
       <table>
            <tbody><tr>
              <th></th>
              <td></td>
       </tbody>
       </table>


   <img src="." height="17" alt="example3" title="">
       <table>
            <tbody><tr>
              <th></th>
              <td></td>
       </tbody>
       </table>
   </div>
Run Code Online (Sandbox Code Playgroud)

I only want to select the attributes "alt" values "example1, example2, example3" of images. How can I get them.

css css-selectors

4
推荐指数
2
解决办法
8442
查看次数

标签 统计

css ×1

css-selectors ×1