Border-Radius not working in Email and Browser

后端 未结 3 454
耶瑟儿~
耶瑟儿~ 2020-12-11 18:14

I have been designing a newsletter, and whilst the border-radius work on my localhost (showing all the rounds edges) - but it does not work when tested through sample email

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 19:15

    I do not think that Outlook 2007 support the border-radius property, so it is probably normal if it does not display rounded corners. If you are looking for a workaround, I suggest you to have a look at this question: How can I make rounded corners on non-CSS3 browsers?

    For the CSS in modern browsers, currently you need to prefix certain proprties, for example:

    .withRoundedCorners {
        border-radius: 5px;        // Standard
        moz-border-radius: 5px;    // Firefox
        khtml-border-radius: 5px;  // 
        o-border-radius: 5px;      // Opera
        webkit-border-radius: 5px; // Safari
        ms-border-radius: 5px;     // Internet Explorer 9+
    }
    

    I know it's boring... But it's temporary, in the future only border-radius will be required.

提交回复
热议问题