开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 916|回复: 5
收起左侧

[求助] 网页源码文本格式 如何获取DIV 元素的文本匹配

[复制链接]
结帖率:91% (99/109)
发表于 2022-2-16 05:18:19 | 显示全部楼层 |阅读模式   安徽省芜湖市
网页源码文本格式 如何获取DIV 元素的文本匹配
  
[b]商品详情[/b]
[img]https://assets.alicdn.com/kissy/1.0.0/build/imglazyload/spaceball.gif[/img][img]https://img.alicdn.com/imgextra/i4/2949829967/O1CN01PVVGYr2NUwJg3KcRW_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i4/2949829967/O1CN01p47zXa2NUwJg3LDpI_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i3/2949829967/O1CN01pmKORB2NUwJfQyFN7_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i4/2949829967/O1CN01hM7q9o2NUwJbI020d_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i3/2949829967/O1CN01Hbib0t2NUwJcqeeVq_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i2/2949829967/O1CN01VMNSvQ2NUwJWpsD6u_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i4/2949829967/O1CN01LBk7lR2NUwJj2T01X_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i3/2949829967/O1CN01nkGMeY2NUwJcqdFCN_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i3/2949829967/O1CN01Ynuc1n2NUwJT7YWly_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i3/2949829967/O1CN015caJzd2NUwJdEFRpL_!!2949829967.jpg[/img][img]https://img.alicdn.com/imgextra/i1/2949829967/O1CN01ZxnN832NUwJS2HbWI_!!2949829967.jpg[/img]


结帖率:91% (99/109)

签到天数: 1 天

 楼主| 发表于 2022-2-16 05:19:08 | 显示全部楼层   安徽省芜湖市
搞错了 纯文本模式
回复 支持 反对

使用道具 举报

结帖率:100% (5/5)
发表于 2022-2-16 09:59:07 | 显示全部楼层   广西壮族自治区南宁市
没看懂,问题和要的结果到底是啥
回复 支持 反对

使用道具 举报

头像被屏蔽

结帖率:86% (12/14)
发表于 2022-2-16 16:30:46 | 显示全部楼层   江苏省苏州市
纯文本模式 也没看到Div元素
回复 支持 反对

使用道具 举报

结帖率:91% (99/109)

签到天数: 1 天

 楼主| 发表于 2022-2-16 17:56:27 | 显示全部楼层   安徽省芜湖市
Hang Xiao 发表于 2022-2-16 16:30
纯文本模式 也没看到Div元素

<div id="description" class="J_DetailSection tshop-psm tshop-psm-bdetaildes">
        <h4 class="hd">商品详情</h4>
        <div class="content ke-post" style="height: auto;"><img class="desc_anchor img-ks-lazyload" id="desc-module-1" src="https://assets.alicdn.com/kissy/1.0.0/build/imglazyload/spaceball.gif"><p><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01JAqdvb2LuvXTdvieQ_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload" data-spm-anchor-id="a220o.1000855.0.i0.9fd47e3d1TbZIz"></p> <p><img src="https://img.alicdn.com/imgextra/i2/2271279753/O1CN01xujRIC2LuvTaavEmU_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload" data-spm-anchor-id="a220o.1000855.0.i1.9fd47e3d1TbZIz"><img src="https://img.alicdn.com/imgextra/i1/2271279753/O1CN01gr6lbi2LuvTbESmrB_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i2/2271279753/O1CN01eT6M3e2LuvTg6Tw8h_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i2/2271279753/O1CN01NGP5X72LuvTdFpgUE_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i1/2271279753/O1CN01Z5LylU2LuvTRx0fJU_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01d4DXeI2LuvTaMXPsf_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i4/2271279753/O1CN01Cd7mG72LuvTcXipT6_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01Ob1uXQ2LuvTgVlnNY_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01foZ3mH2LuvYZqaLT4_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"></p></div>
</div>
回复 支持 反对

使用道具 举报

结帖率:91% (99/109)

签到天数: 1 天

 楼主| 发表于 2022-2-16 17:56:42 | 显示全部楼层   安徽省芜湖市
<div id="description" class="J_DetailSection tshop-psm tshop-psm-bdetaildes">
        <h4 class="hd">商品详情</h4>
        <div class="content ke-post" style="height: auto;"><img class="desc_anchor img-ks-lazyload" id="desc-module-1" src="https://assets.alicdn.com/kissy/1.0.0/build/imglazyload/spaceball.gif"><p><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01JAqdvb2LuvXTdvieQ_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload" data-spm-anchor-id="a220o.1000855.0.i0.9fd47e3d1TbZIz"></p> <p><img src="https://img.alicdn.com/imgextra/i2/2271279753/O1CN01xujRIC2LuvTaavEmU_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload" data-spm-anchor-id="a220o.1000855.0.i1.9fd47e3d1TbZIz"><img src="https://img.alicdn.com/imgextra/i1/2271279753/O1CN01gr6lbi2LuvTbESmrB_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i2/2271279753/O1CN01eT6M3e2LuvTg6Tw8h_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i2/2271279753/O1CN01NGP5X72LuvTdFpgUE_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i1/2271279753/O1CN01Z5LylU2LuvTRx0fJU_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01d4DXeI2LuvTaMXPsf_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i4/2271279753/O1CN01Cd7mG72LuvTcXipT6_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01Ob1uXQ2LuvTgVlnNY_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"><img src="https://img.alicdn.com/imgextra/i3/2271279753/O1CN01foZ3mH2LuvYZqaLT4_!!2271279753.jpg" align="absmiddle" class="img-ks-lazyload"></p></div>
</div>
回复 支持 反对

使用道具 举报

  高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表