我正在尝试复制 http://www.ebayclassifieds.com/m/PostAd?scrid=3465450-2253858851033189948 上的浏览器发布参数但由于某些原因,我找不到其中 2 个值的来源。参数是 btn-previwe-ad.x 和 btn-预览-ad.y 但我找不到 html 源本身的参数或任何隐藏值。
最佳答案
它们表示单击时鼠标指针相对于元素的 x 和 y 位置,并在通过 <input type="image">
提交表单时自动添加。点击:
<input name="btn-previwe-ad" ... alt="Preview your ad" type="image">
来自HTML 4.02 specification (Source):
When a pointing device is used to click on the image, the form is submitted and the click coordinates passed to the server. The x value is measured in pixels from the left of the image, and the y value in pixels from the top of the image. The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate values, respectively.
关于php - 隐藏post参数,phpcurl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3033603/