"div" 搜索结果,为您找到约 1306 条结果
wen119260688wen119260688 Ask a question 2022-11-06 11:21

Question python, selenium element positioning issues

1) driver.execute_script(f'document.documentElement.scrollTop={(i+1)*1000}') lis = driver.find_elements_by_css_selector('#root > div > div.T_foQflM > div > div > div.ckqOrial > div. mwbaK9mv > div:nth-child(2) > ul > li:nth-child(4)') for li in lis: herf = li.find_elements_by_css_selector('a').get_attribute('herf') print(herf) Running result and error content runfile('D:/anaconda/练习/伊素婉.py', wdir='D:/anaconda/练习') Traceback (most recent call last): File "D:\anaconda\练习\伊素婉.py", line 22, in lis = driver.find_e...
dzh171dzh171 Ask a question 2022-11-07 16:11

Question @click The click event cannot be triggered

is a clickable event in the first div, but it is not clickable in the second div, and it is also not clickable in the image tag. How is this?
caisubaocaisubao Ask a question 2022-11-07 17:31

Question The python crawler lxml module li.xpath("X") returns an empty list. What if to replace it with somet hing else...

The python crawler lxml module li.xpath("X") returns an empty list. What if to replace it with somet hing else...
< div class = " md_content_show“数据- v - 3967 e397 = " " > < div class = " aw-list-img > #这样子不行 if li == "[]": print("[0]") else: print(li.xpath("./div/div/p[3]/a/text()")) #这样子不行 for li in result: if li.xpath("./div/div/p[3]/a/text()") == "[]": print("[0]") else: print(li.xpath("./div/div/p[3]/a/text()")) 这些也不行 if li.xpath("./div/div/p[3]/a/te xt()") == None: if li == None: if li == '[]': ...
dgqs2000dgqs2000 Ask a question 2022-11-08 00:05

Question react,使用两个useRef,正确的写法是什么?

react,使用两个useRef,正确的写法是什么?
{props.children}div> div> ) // ... } // ... 请问useRef可否这样写?如不可,请问正确的写法是什么?
cuipsllcuipsll Ask a question 2022-11-08 01:01

Question 文件无法上传到服务器

文件无法上传到服务器
文件无法上传到服务器
问题:1.无法上传文件到服务器2.单独运行DownServlet可以看到相关文件3上传文件后无法查看和下载我想应该是DownloadServlet.java出现问题,看了一天也没发现,求帮助上传后点下载会这样 1.uploadHttpOne.jsp 单个文件上传单文件上传实例-->返回首页文件描述:请选择文件
dxboy999dxboy999 Ask a question 2022-11-08 03:01

Question 关于jQuery中attr方法无效的问题

关于jQuery中attr方法无效的问题 代码如下: $("div").on("click",(e)=>{ $("div").attr("left","100px"); $("div").attr("top","100px"); // $("div") .attr({ // left:"100px", // top:"100px" // }); // $("div").css("left","100px"); // $("div").css("top","100px"); }) div { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; background-color:...
dongchenxfdongchenxf Ask a question 2022-11-08 03:01

Question 这个代码错在哪里,怎么改,求个能改个可以运行的

第十四行有错吗 展开全部
W75728882W75728882 Ask a question 2022-11-09 14:54

Question js implementation navigation bar do not know what went wrong?

A single flash of pink occurs when you click Document .nav { background-color: aqua; width: 400px; height: 60px; display: flex; line-height: 60px; text-align: center; margin: 100px auto 0; } .nav a { flex: 1; text-decoration: none; } .current { background-color: pink; } .nav_con { width: 400px; margin: 0 auto; } 123 123 ...
cutecoconutcutecoconut Ask a question 2022-11-09 15:27

Question 花儿与少年前端静态网页html代码

花儿与少年前端静态网页html代码
盒子模型浮动超链接 css+div网页布局网页设计与制作三列布局div + Css布局页面 展开全部
donglei2860donglei2860 Ask a question 2022-11-09 20:03

Question How to make data transfer between two static web pages

HTML static web page how to achieve the transmission between data, the shopping cart calculated goods total price transfer to the settlement page. This is the code for the shopping cart secti on 购物车 {{item.name}} ¥{{item.price}} - ...
dydtk521dydtk521 Ask a question 2022-11-09 21:02

Question If the first screen background color gradient + fallen leaves effect

If the first screen background color gradient + fallen leaves effect
If the first screen background color gradient + fallen leaves effect
I set the header to 100vh and want the first screen background to fade. < tempimgKey0 < P > Source code : 驶出孤岛 的 淘金者 export default { name: "Home", }; @import "../../style/viriables.scss"; * { margin: 0; box-sizing: border-box; } .header { width: 100%; height: 100vh; display: flex; justify-content: center; background: linear-gradient(to top, rgb(255, 255, 255), #000); background: -webkit-linear-gradient( to top, rgb(255, 255, 255), #000 ); /* Safari 5.1-6.0 */...
dodo179dodo179 Ask a question 2022-11-10 11:02

Question Python爬虫在论坛查询数据

# 获取登陆界面的内容 tree = etree.HTML(mainResponce) formHash = tree.xpath('/html/body/div[5]/div[1]/div/div[3]/div/form/input[2]/@value')[0] # 获取formhash return formHash def GetImageNa me(url, headers): mainResponce = session.get(url, headers=headers).text # 获取登陆界面的内容 tree = etree.HTML(mainResponce) jpgUrl = tree.xpath('/html/body/div[7]/div/div[2]/div/div[2]/div[1 ]/div[1]/form/div/span/@id')[0] jpgName = re.findall('seccode_(.*)', jpgUrl)[0] return jpgName def GetImageResult(jpgName, headers1): """ 获取验证码并识别 """ jpgUr...
duan4123duan4123 Ask a question 2022-11-10 13:01

Question 为啥xpath解析返回空列表?为啥对照后发现div个数不一样

为啥xpath解析返回空列表?为啥对照后发现<b class="text-danger">div</b>个数不一样
问题遇到的现象和发生背景 为啥python用xpath解析的时候返回空列表?我对下来发现div个数和源代码里不一样怎么回事? 用代码块功能插入代码,请勿粘贴截图 代码: import requestsfrom lxml import etree url = "https://www.baidu.com" resp = requests.get(url)resp.encoding = ' utf-8' ht = etree.HTML(resp.content)print(ht.xpath("/html/body/div[1]/div[1]/div")) # 以下是直接复制下来的全部xpath路径 返回是空# /html/body/div[1]/div[1]/div[5]/div/div/div[3]/div/a[1]/div 运行结果及报错内容 [] 进程已结束,退出代码 0 我的解答思路和尝试过的方法 已经测试了前面路径都是对的:print(ht.xpath("/html/body/div[1]/div[1]/@id"))结果就是head但是往下继续/div的时候只有一个div,而对照源代码不止一个这是为什么啊 展开全部 ...
diaochenlongdiaochenlong Ask a question 2022-11-10 17:03

Question 【help】selenium call use issues, Big Brother watch kneeling ball

【help】selenium call use issues, Big Brother watch kneeling ball
【help】selenium call use issues, Big Brother watch kneeling ball
27;pwd').send_keys('L **00') print('4') web.find_element(By.XPATH,'/html/body/div[1]/div[2]/div/div/button').click() #time.sleep(1) #we b.find_element(By.XPATH,'/html/body/div[1]/div[2]/form/div[1]').. send_keys('2108010527') #time.sleep(1) #web.find_element(By.XPATH,'/html/body/div[1]/div[2] /form/div[2]').send_k eys('Lc2#0000000000') #time.sleep(1) #web.find_element(By.XPATH,'/html/body/div[1]/div[2]/div/div/button').click() #time.sleep(3) web...
dtq_1985dtq_1985 Ask a question 2022-11-10 19:03

Question 字符到div的距离调节

字符到<b class="text-danger">div</b>的距离调节
朋友们我这个是用br硬调的对不上咋回事呀css该怎么修改一下呢 展开全部

热门搜索