当我减少我的browser window size
,HTML element
将会消失时,我正面临一个问题。但我想要的是使元素可见和垂直显示。我已经搜索了很多,但没有得到正确的解决我的问题的答案。这是我的代码。在重新调整浏览器大小时设置HTML元素
<div style="border: 1px solid lightgrey; border-radius: 10px 10px 10px 10px; width: 800px">
<table width= "75%" style="margin-left:1%">
<tr>
<td width="30%">
@Html.Captcha("Refresh", "Enter Captcha", 5, "Is required field.", true)<div style="color: Red;">@TempData["ErrorMessage"]</div>
</td>
<td width="70%" >
<div id="qrcode" style="display: none">
<img src="@Url.Action("QrCode", "Qr", new { url = Model.ShortUrl })" onclick="AppendURL('@this.Model.ShortUrl')"/>
</div>
</td>
</tr>
</table>
</div>
当我减少大小,QR code Image
开始提前消失的大小decreasing.Thanks。
你可以发布html输出吗? – ostapische
@ostapische是的..我昨天发布了与图片相同的问题,但没有人回答我。以下是它的链接。请帮助。 (http://stackoverflow.com/questions/17780797/set-contents-of-page-according-to-browser-resolution) – EHS
啊,你现在有一个答案。然后我们可以把它作为一个副本来关闭。 –