ie9中border-collapse至box-shadow无法显示的bug

左手 posted @ 2012年12月05日 21:08 in 前端开发 with tags css3 html5 ie9 box-shadow失效 box-shadow冲突 , 11230 阅读

前几天维护公司项目,给一个弹出层添加box-shadow效果,在ie9中效果无法显示,搜索出的结果多为更改doctype声明。页面本身使用html5声明,不存在冲突,调试了半天找出原因,弹出层外框为table默认添加了border-collapse: collapse的样式,因为这个样式导致box-shadow无法生效,修改为border-collapse: separate后解决。

示例代码:

<!DOCTYPE HTML>
<html lang="zh-cn">
  <head>
    <meta charset="UTF-8">
    <title></title>
  </head>
  <body>
    <table style="border-collapse: collapse">
      <tr>
        <td>
          <div style="box-shadow:0 0 50px rgba(0, 0, 0, 0.5); width: 200px; height: 200px; border: 1px solid #CCC;"> </div>
        </td>
      </tr>
    </table>
    <table>
      <tr>
        <td>
          <div style="box-shadow:0 0 50px rgba(0, 0, 0, 0.5); width: 200px; height: 200px; border: 1px solid #CCC;"> </div>
        </td>
      </tr>
    </table>
  </body>
</html>

 

Avatar_small
seo service UK 说:
2024年1月16日 15:11

Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing

Avatar_small
먹튀폴리스신고 说:
2024年2月11日 21:42

Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better. The post is written in very a good manner and it contains many useful information for me. Thank you very much and will look for more postings from you.

Avatar_small
온라인카지노순위 说:
2024年2月11日 21:43

This is really likewise an incredibly beneficial placing most of us severely encountered shopping as a result of. It truly is faraway from each and every day we have now possibility to think about something. 

Avatar_small
메이저토토사이트 说:
2024年2月11日 21:43

Woah I’m just genuinely digging the style/thought of this web site. It’s straightforward, however fantastic. Additional frequently than not it is demanding to acquire the perfect involving exceptional usability along with visual physical appearance. I should say you have carried out a brilliant task. In addition, your web page starts tremendous rapidly personally with Web explorer. Outstanding Internet site

Avatar_small
토토읕 说:
2024年2月11日 21:44

Prevention is key, which is why we offer maintenance plans. We help you stay ahead of potential hazards and costly repairs with regular cleaning and inspections.

Avatar_small
먹튀검증 说:
2024年2月11日 21:45

Goodness! Such an astounding and supportive post this is. I outrageously cherish it. It's so great thus amazing. I am simply flabbergasted. I trust that you keep on doing your work like this later on moreover.

Avatar_small
안전놀이터검증 说:
2024年2月11日 21:46

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking

Avatar_small
먹튀검증커뮤니티 说:
2024年2月11日 21:47

Impressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards.

Avatar_small
엔트리파워볼사이트 说:
2024年2月11日 21:48

World of warcraft! What precisely tabs opener the place has long been in my situation. Considerably preferred, bookmarked as their favorite, That i can’t look forward to even more!

Avatar_small
메이저놀이터 说:
2024年2月11日 21:49

Useful information. Fortunate me I discovered your web site by accident, and I am stunned why this accident didn’t came about in advance! I bookmarked it.

Avatar_small
메리트카지노 说:
2024年2月11日 21:49

I think one of your commercials triggered my web browser to resize, you may well want to put that on your blacklist.

Avatar_small
토토사이트 说:
2024年2月11日 21:50

My spouse and I absolutely love your blog and find a lot of your post’s to be exactly what I’m looking for. Do you offer guest writers to write content in your case? I wouldn’t mind writing a post or elaborating on a few of the subjects you write with regards to here. Again, awesome web site!

Avatar_small
토토사이트 说:
2024年2月11日 21:51

This may be the proper weblog for desires to find out about this topic. You know so much its virtually challenging to argue along (not too I really would want…HaHa). You definitely put a new spin for a topic thats been revealed for some time. Excellent stuff, just great!

Avatar_small
메이저사이트 说:
2024年2月11日 21:51

Woah I’m just genuinely digging the style/thought of this web site. It’s straightforward, however fantastic. Additional frequently than not it is demanding to acquire the perfect involving exceptional usability along with visual physical appearance. I should say you have carried out a brilliant task. In addition, your web page starts tremendous rapidly personally with Web explorer. Outstanding Internet site

Avatar_small
먹튀사이트조회 说:
2024年2月11日 21:52

Prevention is key, which is why we offer maintenance plans. We help you stay ahead of potential hazards and costly repairs with regular cleaning and inspections.

Avatar_small
메이저사이트 说:
2024年2月11日 21:53

Goodness! Such an astounding and supportive post this is. I outrageously cherish it. It's so great thus amazing. I am simply flabbergasted. I trust that you keep on doing your work like this later on moreover.

Avatar_small
온라인카지노 说:
2024年2月11日 21:53

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking

Avatar_small
카지노사이트목록 说:
2024年2月11日 21:54

World of warcraft! What precisely tabs opener the place has long been in my situation. Considerably preferred, bookmarked as their favorite, That i can’t look forward to even more!

Avatar_small
토토사이트추천 说:
2024年2月11日 21:55

It a fabulous blog post As i looked at caused by have the application. Advise everything that Need be to find expectation on potential future you certainly will persist designed for writing a great wonderful blog post.

Avatar_small
บาคาร่าออนไลน์ 说:
2024年2月11日 21:55

If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings. Thank you for caring about your content.

Avatar_small
먹튀검증업체 说:
2024年2月11日 21:56

Two full thumbs up for this magneficent article of yours. I've truly delighted in perusing this article today and I figure this may be outstanding amongst other article that I've perused yet. If it's not too much trouble keep this work going ahead in a similar quality.

Avatar_small
토토사이트검증 说:
2024年2月11日 21:57

Your online diaries propel more each else volume is so captivating further serviceable It chooses me happen for pull back repeat. I will in a blaze grab your reinforce to stay instructed of any updates.

Avatar_small
토토사이트홍보 说:
2024年2月11日 21:58

I discovered your this post while hunting down some related data on website search...Its a decent post..keep posting and upgrade the data 

Avatar_small
메이저사이트 说:
2024年2月11日 21:59

I appreciated how flexible the team at amcauto.co was when it came to scheduling appointments and test drives. They were always willing to work around my schedule.

Avatar_small
먹튀사이트 说:
2024年2月11日 22:00

Hello, you used to write excellent, but the last few posts have been kinda boring? I miss your tremendous writings. Past several posts are just a little out of track! come on!

Avatar_small
먹튀검증 说:
2024年2月11日 22:00

I was suggested this web site through my cousin. I’m not certain whether this put up is written through him as no one else recognize such exact approximately my difficulty. You’re wonderful! Thank you!

Avatar_small
먹튀검증사이트 说:
2024年2月11日 22:01

I’m truly enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a developer to create your theme? Great work!

Avatar_small
사설토토 说:
2024年2月11日 22:01

You could definitely see your skills within the paintings you write. The arena hopes for more passionate writers like you who are not afraid to say how they believe. Always follow your heart.

Avatar_small
바카라사이트 说:
2024年2月11日 22:03

I?ve recently started a website, the information you offer on this website has helped me tremendously. Thanks for all of your time & work.

Avatar_small
안전토토사이트 说:
2024年2月11日 22:03

Great work! That is the kind of info that should be shared across the internet. Shame on Google for now not positioning this submit upper! Come on over and visit my web site . Thanks =)

Avatar_small
메이저안전놀이터 说:
2024年2月11日 22:04

Thank you for every other magnificent article. Where else may just anyone get that kind of info in such an ideal manner of writing? I have a presentation subsequent week, and I am at the search for such info.

Avatar_small
먹튀사이트 说:
2024年2月11日 22:05

My spouse and I absolutely love your blog and find a lot of your post’s to be exactly what I’m looking for. Do you offer guest writers to write content in your case? I wouldn’t mind writing a post or elaborating on a few of the subjects you write with regards to here. Again, awesome web site!

Avatar_small
먹튀사이트조회 说:
2024年2月11日 22:05

This may be the proper weblog for desires to find out about this topic. You know so much its virtually challenging to argue along (not too I really would want…HaHa). You definitely put a new spin for a topic thats been revealed for some time. Excellent stuff, just great!

Avatar_small
토토안전나라 说:
2024年2月11日 22:06

Woah I’m just genuinely digging the style/thought of this web site. It’s straightforward, however fantastic. Additional frequently than not it is demanding to acquire the perfect involving exceptional usability along with visual physical appearance. I should say you have carried out a brilliant task. In addition, your web page starts tremendous rapidly personally with Web explorer. Outstanding Internet site

Avatar_small
먹튀검증업체 说:
2024年2月11日 22:07

Prevention is key, which is why we offer maintenance plans. We help you stay ahead of potential hazards and costly repairs with regular cleaning and inspections.

Avatar_small
먹튀검증업체 说:
2024年2月11日 22:07

Prevention is key, which is why we offer maintenance plans. We help you stay ahead of potential hazards and costly repairs with regular cleaning and inspections.

Avatar_small
먹튀대피소 说:
2024年2月11日 22:07

I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter