search
HomeBackend DevelopmentPHP TutorialPHP 项目在IE 和 火狐中不兼容的问题要怎么解决有图有真相

PHP 项目在IE 和 火狐中不兼容的问题要怎么解决....有图有真相


回复讨论(解决方案)

css、js 兼容问题
有图也没真相
有码才有真相

css、js 兼容问题
有图也没真相
有码才有真相
一般是怎么调试的呢...CSS样式我写好了,再改估计就是自己不想要的效果了...

firefox 下用firebug调试不错。可以一试。

样式表中的一些特殊属性需要专门针对 ie 书写同名但前面有下划线的属性
你可针对你使用的属性去网上搜索一下,立刻就有答案

firefox 下用firebug调试不错。可以一试。
没怎么用过...看了一会还怎么看出名堂来...

firefox 下没有问题,用 firebug 调试起什么作用?

你只有在 IE 看是正常时,才可以在 firefox 下用 firebug 调试

你只有在 IE 看是正常时,才可以在 firefox 下用 firebug 调试
就是只有在IE下是正常的,其他浏览器下都有问题...这下苦逼了

这样啊,你贴图中不是有 CSS 选项卡吗?为什么不看?

贴的代码没什么问题,主要应该还是css上
这个还是过html版问吧,那边有高人能帮你写个跨浏览器css hack

写代码就是要兼容。
哪个程序员桌面上不得放那几个主流浏览器来进行测试!
不兼容就慢慢改,直到兼容。

写代码就是要兼容。
哪个程序员桌面上不得放那几个主流浏览器来进行测试!
不兼容就慢慢改,直到兼容。
这个实在是不知道那块出错了...

<div id="div4" style="position:relative; width:216;">  <label id="div4" class="active" style="cursor: hand; background:url(images/left_main.jpg); width:216; height:31; text-align:center; color:#F0F0F0;padding-top:12px">报表信息</label></div><div id="div4other" position:relative; widows:216;"><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="baobiao/index_2.php" target="mainFrame">入库报表</a></label><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="glygl/add_admin .php" target="mainFrame">出库报表</a></label><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="baobiao/confg.php" target="mainFrame">报表设置</a></label></div>

这样啊,你贴图中不是有 CSS 选项卡吗?为什么不看?

<div id="div4" style="position:relative; width:216;">  <label id="div4" class="active" style="cursor: hand; background:url(images/left_main.jpg); width:216; height:31; text-align:center; color:#F0F0F0;padding-top:12px">报表信息</label></div><div id="div4other" position:relative; widows:216;"><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="baobiao/index_2.php" target="mainFrame">入库报表</a></label><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="glygl/add_admin .php" target="mainFrame">出库报表</a></label><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="baobiao/confg.php" target="mainFrame">报表设置</a></label></div>

孩子,这是js和css不兼容,不是PHP不兼容

孩子,这是js和css不兼容,不是PHP不兼容
我现在把JS文件都没有有引用还是不成

孩子,这是js和css不兼容,不是PHP不兼容 你能排除是jS的问题,那就只剩下CSS的问题了,编程很多时候就会出现一些莫名其妙的BUG  我们只能用排除法去解决了,不过你用css把级联菜单写成那个样子确实nb

你这个滑动菜单不是有现成的吗?套一个就是了

Statement
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
PHP Email: Step-by-Step Sending GuidePHP Email: Step-by-Step Sending GuideMay 09, 2025 am 12:14 AM

PHPisusedforsendingemailsduetoitsintegrationwithservermailservicesandexternalSMTPproviders,automatingnotificationsandmarketingcampaigns.1)SetupyourPHPenvironmentwithawebserverandPHP,ensuringthemailfunctionisenabled.2)UseabasicscriptwithPHP'smailfunct

How to Send Email via PHP: Examples & CodeHow to Send Email via PHP: Examples & CodeMay 09, 2025 am 12:13 AM

The best way to send emails is to use the PHPMailer library. 1) Using the mail() function is simple but unreliable, which may cause emails to enter spam or cannot be delivered. 2) PHPMailer provides better control and reliability, and supports HTML mail, attachments and SMTP authentication. 3) Make sure SMTP settings are configured correctly and encryption (such as STARTTLS or SSL/TLS) is used to enhance security. 4) For large amounts of emails, consider using a mail queue system to optimize performance.

Advanced PHP Email: Custom Headers & FeaturesAdvanced PHP Email: Custom Headers & FeaturesMay 09, 2025 am 12:13 AM

CustomheadersandadvancedfeaturesinPHPemailenhancefunctionalityandreliability.1)Customheadersaddmetadatafortrackingandcategorization.2)HTMLemailsallowformattingandinteractivity.3)AttachmentscanbesentusinglibrarieslikePHPMailer.4)SMTPauthenticationimpr

Guide to Sending Emails with PHP & SMTPGuide to Sending Emails with PHP & SMTPMay 09, 2025 am 12:06 AM

Sending mail using PHP and SMTP can be achieved through the PHPMailer library. 1) Install and configure PHPMailer, 2) Set SMTP server details, 3) Define the email content, 4) Send emails and handle errors. Use this method to ensure the reliability and security of emails.

What is the best way to send an email using PHP?What is the best way to send an email using PHP?May 08, 2025 am 12:21 AM

ThebestapproachforsendingemailsinPHPisusingthePHPMailerlibraryduetoitsreliability,featurerichness,andeaseofuse.PHPMailersupportsSMTP,providesdetailederrorhandling,allowssendingHTMLandplaintextemails,supportsattachments,andenhancessecurity.Foroptimalu

Best Practices for Dependency Injection in PHPBest Practices for Dependency Injection in PHPMay 08, 2025 am 12:21 AM

The reason for using Dependency Injection (DI) is that it promotes loose coupling, testability, and maintainability of the code. 1) Use constructor to inject dependencies, 2) Avoid using service locators, 3) Use dependency injection containers to manage dependencies, 4) Improve testability through injecting dependencies, 5) Avoid over-injection dependencies, 6) Consider the impact of DI on performance.

PHP performance tuning tips and tricksPHP performance tuning tips and tricksMay 08, 2025 am 12:20 AM

PHPperformancetuningiscrucialbecauseitenhancesspeedandefficiency,whicharevitalforwebapplications.1)CachingwithAPCureducesdatabaseloadandimprovesresponsetimes.2)Optimizingdatabasequeriesbyselectingnecessarycolumnsandusingindexingspeedsupdataretrieval.

PHP Email Security: Best Practices for Sending EmailsPHP Email Security: Best Practices for Sending EmailsMay 08, 2025 am 12:16 AM

ThebestpracticesforsendingemailssecurelyinPHPinclude:1)UsingsecureconfigurationswithSMTPandSTARTTLSencryption,2)Validatingandsanitizinginputstopreventinjectionattacks,3)EncryptingsensitivedatawithinemailsusingOpenSSL,4)Properlyhandlingemailheaderstoa

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools