getDialog().getWindow().setBackgroundDrawable(
dialogfragment背景透明
原文:http://www.cnblogs.com/visuals/p/4838768.html