当我从智能手机或平板电脑查看时,如何进行响应式设计。它应该正确对齐并在任何设备中显示准确的输出。这是我尝试在弹出窗口中实现的代码。我不确定如何根据 css 使其具有响应性。任何建议都会很棒。
<div id="ptechsolfb">
<div id="fb-close"></div>
<div id="ptechsolfblike">
<div id="fbclose"></div>
<div id="ptechsolinside">
</div>
</div>
</div>
<style type="text/css">
#ptechsolinside {
background-image:url(https://www.google.com/images/srpr/logo4w.png);
background-repeat:no-repeat;
}
#ptechsolfblike {width:500px;height:500px; position:absolute;top:50%;left:50%;margin:-135px 0 0 -210px;border-width: medium medium 71px;}
#ptechsolinside {background-color:#FFF;}
#ptechsolinside { border-width: medium medium 71px; border-style: none; border-color: blue; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; margin-top: -4px; width: 500px; height: 500px; margin-left: 8px;}
</style>
这是小提琴