css selector

 

 

css下定位

通过id定位

通过class定位

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

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

 

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

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

 

 

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

 

多属性定位

 

模糊定位

^以什么开头

¥以什么结尾

*包含什么

 

posted @ 2018-05-06 03:12  liyajing  阅读(131)  评论(0编辑  收藏  举报