css selector

css下定位

通过id定位

通过class定位

当class下存在两个样式时,如class=name agh

定位的时候使用:  .name.agh

当class和id 都没有的情况下,在[]中写入定位的内容

扫描二维码关注公众号,回复: 114766 查看本文章

通过标签选择器,缩小查找范围

 xpath支持角标定位,css不支持

多属性定位

模糊定位

^以什么开头

¥以什么结尾

*包含什么

猜你喜欢

转载自www.cnblogs.com/sheery/p/8997057.html
今日推荐