CSS adding border radius to an IFrame

前端 未结 11 858
南旧
南旧 2020-12-31 05:50

Adding a border to an IFrame is no biggie - you do it like this e.g.:

  border: 4px solid #000;
  -moz-border-radius: 15px;
  border-radius: 15px;
         


        
11条回答
  •  再見小時候
    2020-12-31 06:31

    Border radius isn't well supported or consistent yet. If you want the desired affect, try using DIV's around the element and use graphics instead, with an overflow of hidden in your CSS. You might want to look into the sliding doors tehnique if your iframe varies in height.

    http://www.alistapart.com/articles/slidingdoors/

    Hope this helps.

    Good luck!

提交回复
热议问题