0
嗨想显示一个按钮为方块。如果我使用的像素比屏幕分辨率有问题。如果我使用的百分比,比例不正确CSS:不同屏幕分辨率的方形按钮
你知道如何做到这一点吗?
.serviceButton{
position:absolute;
left: 20%;
top: 20%;
width: 300px; //if I use this than the sqaure is small
height: 300px; // in big screen resolutions
}
<div>
<button type="button" class="serviceButton">Services</button>
</div>
嗨,我觉得这琴帮助你.. 的http://的jsfiddle .net/josedvq/38Tnx/ – phpfresher
请再次阅读你的问题,并纠正它在哪里nessecary – Wavemaster
@phpfresher:谢谢 –