css implements the DIV lower function, but the link offset occurs on the mobile phone's Firefox browser_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:26:30
Original
1338 people have browsed it

Very strange, it can be used normally on PC Firefox, IE browser and iPhone browser

But when the mobile Firefox browser is opened, although the page layout is displayed normally, the click event of img The position is offset, that is, I have to click on the upper left position of the original image to trigger the onclick event

CSS part

<style type="text/css">.shape{width: 100%;  height: 100px; position:fixed!important; position:absolute;bottom:5px!important; bottom:auto; top: expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop+(documentElement.clientHeight - this.clientHeight):document.body.scrollTop+(document.body.clientHeight - this.clientHeight));}</style>
Copy after login

BODY part
<div id="top" class="shape" >	<table width="100%" background="pages/wap/images/06.gif" border="0" align="center" cellpadding="0" cellspacing="0">      <tr>        <td width="25%"><div style="text-align: center;"><img src="pages/wap/images/08.gif" width="55" height="49" onclick="goHome();"/></div></td>        <td width="25%"><div style="text-align: center;"><img src="pages/wap/images/09.gif" width="55" height="49"  onclick="goBack();"/></div></td>        <td width="25%"><div style="text-align: center;"><img src="pages/wap/images/10.gif" width="55" height="49"  onclick="goHelp();"/></div></td>        <td width="25%"><div style="text-align: center;"><img src="pages/wap/images/11.gif" width="55" height="49"  onclick="goLogin();"/></div></td>        </tr>    </table></div>
Copy after login




Reply to the discussion (solution)

Try setting the img format to display=block. . .

The writing is really a bit wordy. . .

I forgot to mention that the website on the mobile phone is normal when you first click it (that is, it is at the bottom, and clicking the button is effective)

But if there is a lot of content, after dragging down , it appears that although it is still at the bottom, there is no response when clicking the button directly, but if you click on the upper left position of the button, the button event can be triggered

Set the img format to display=block and try it. . .
I tried it but it still didn’t work

I found that if I set height: above 70px, the position of the bottom button to trigger the event will be normal, but even 65px will not work, and what I need is 48


There is a situation: when I add the table to 79px and set the vlign of td to top, it can be used normally: for example, the following code: the first two tds are available, or the two are not, if set When the h of the table is 50, there is a problem with all 4 of them

<table   style="background: yellow;width: 100%;height:79px;border: 0;"    cellpadding="0" cellspacing="0">      <tr>        <td style="width: 25%;height: 49px;text-align: center;vertical-align: top"><a href="javascript:void(0)"  onclick="javascript:alert('主页')" style="font-size: 10">主页</a></td>        <td style="text-align: center;vertical-align: top"><a href="javascript:void(0)"  onclick="javascript:alert('返回')" style="font-size: 10">返回</a></td>        <td ><a href="javascript:void(0)"  onclick="javascript:alert('刷新')" style="font-size: 10">刷新</a></td>        <td ><a href="javascript:void(0)"  onclick="javascript:alert('退出')" style="font-size: 10">退出</a></td>      </tr>    </table>
Copy after login

Then you have to keep working hard. I'm sorry to say that I can't help! !

Not very familiar with mobile terminal development~~~

Come on, come on,

The BUG effect has been restored successfully, website:
http://heavens.duapp.com /webpage/wapindex.jsp
There is no problem when you first click on it. If you click to jump to a page with the same content, the problem will be restored [even if you use a hyperlink to return, the problem still exists]

Yes Friends who are interested can use Firefox mobile browser to test it

Even if the style is completely removed, the same thing is still the same. Is it a problem with FF?
http://heavens.duapp.com/webpage/test.jsp

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head>	<title>基本无样式的情况</title>	<base href="<%=basePath%>">    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	</head>   <body style="background-color: #1863C7;"><table>   <tr><td><a href="webpage/wapindex.jsp">返回</a></td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr>  <tr><td >很多内容</td></tr></table><table   style="background: green;height: 59px;">     <tr>       <td valign="top"><a href="javascript:void(0)"  onclick="javascript:alert('主页')" style="font-size: 10">主页</a></td>       <td ><a href="javascript:void(0)"  onclick="javascript:alert('返回')" style="font-size: 10">返回</a></td>       <td ><a href="javascript:void(0)"  onclick="javascript:alert('刷新')" style="font-size: 10">刷新</a></td>       <td ><a href="javascript:void(0)"  onclick="javascript:alert('退出')" style="font-size: 10">退出</a></td>     </tr> </table></body></html>
Copy after login

It’s a BUG problem in Firefox - -!
http://mozilla.com.cn/post/59172/

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!