In order to fix an IE9 bug I had to put the 'DOCTYPE' declaration at the top of the page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&_Stack Overflow中文网
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&
解决方案是从 require_once 'somefile.php' 切换;
至
require_once('somefile.php');
虽然 Firefox 和 Android 浏览器对第一种样式很好,但 IE9 有一个怪癖:它会忽略 div 的 inline-block 样式。
我正在使用这个正则表达式来尝试查找看起来像这样的链接,并将它们替换为仅链接的开始和结束标记之间的内容。
正则表达式:
/<a class="tag_link"[^>]*>([^<]*)<\/a>/mg
我在示例代码上测试了正则表达式并且它可以工作,但是当我尝试