The html generated by PHP using the Smarty template does not respond to clicks in IE (the bootstrap library is used)

Source: Internet
Author: User
Tags chrome developer chrome developer tools smarty template
The html generated by PHP using the Smarty template does not respond to clicks in IE (using the bootstrap Library). The html generated cannot be parsed in IE 11 ..
I don't know why ..
Attachment 233 is not available.

The display is completely normal. All hyperlinks make all JS events invalid, but it works normally in Chrome.

Baidu online storage:
Link: http://pan.baidu.com/s/1qWK9wy4 password: 4j39


Reply to discussion (solution)

Check whether the generated html is what you want.

Check whether the generated html is what you want.



I saw what I wanted.

Most of them are caused by spaces. use firebug or chrome developer tools to view the actual html dom (non-source code)

Most of them are caused by spaces. use firebug or chrome developer tools to view the actual html dom (non-source code)


The source code is generated by Smarty, and html dom is missing out with IE and Chrome developer tools.

Should I send this to the html section? This does not seem to be caused by PHP.

Either jq or bs or ie11 is not compatible. it is normal for me to use the old version.
In addition, there are many duplicate IDs in the poster tag, and the ul contains incorrect tag nesting ..

Either jq or bs or ie11 is not compatible. it is normal for me to use the old version.
In addition, there are many duplicate IDs in the poster tag, and the ul contains incorrect tag nesting ..


Can you elaborate? For example, ul label nesting? Where? The duplicate id is used to facilitate the unified selection of css.

Class... ul can only use li at the next level, but this has nothing to do with the problem of the landlord.

Class... ul can only use li at the next level, but this has nothing to do with the problem of the landlord.


Oh, thank you, but I wonder if this is an IE bug?

There are more issues with ie, so try to ignore it.

There are more issues with ie, so try to ignore it.


Sang Xin's programmers in China still have a lot of IE estimates, so I plan to study the problem. what do you think may cause this fault? Bootstrap library or?

Web.css,

body {padding: 30px 30px 50px; bottom: 80px; position: relative; z-index: -1;}

Change

Body {
Padding: 30px 30px 50px; bottom: 80px; position: relative; z-index: 0;
}

This is a problem with the web.css file.
Body {
Padding: 30px 30px 50px; bottom: 80px; position: relative; z-index:-1;
}

Remove z-index:-1, otherwise all contents will be blocked ..

This is a problem with the web.css file.
Body {
Padding: 30px 30px 50px; bottom: 80px; position: relative; z-index:-1;
}

Remove z-index:-1, otherwise all contents will be blocked ..



This is a problem with the web.css file.
Body {
Padding: 30px 30px 50px; bottom: 80px; position: relative; z-index:-1;
}

Remove z-index:-1, otherwise all contents will be blocked ..


Why does soga mean that IE cannot be parsed, while Chrome is normal? But thanks for trying.

Web.css,

body {padding: 30px 30px 50px; bottom: 80px; position: relative; z-index: -1;}

Change

Body {
Padding: 30px 30px 50px; bottom: 80px; position: relative; z-index: 0;
}



Thank you for testing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.