gpt4 book ai didi

c# - asp net css中的响应按钮

转载 作者:太空宇宙 更新时间:2023-11-04 09:08:53 25 4
gpt4 key购买 nike

如标题所述。我有这个弹出窗口,我需要做出响应。现在,当我调整窗口大小时,按钮出于某种原因离开了窗口。我已经使用 % 而不是像素,仍然没有。有人有建议吗?

CSS:

.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
font-size: 13px;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}

.modal-content {
background-color: #fefefe;
margin: auto;
margin-top: 200px;
padding: 20px;
border: 2px solid cornflowerblue;
width: 21%;
height: 10.5%;
min-width: 400px;
min-height: 15%;
}

.modalHdr {
margin-left: -1px;
font-size: 20px;
}

.popupConfirm {
border: 1px #aaa;
padding: 10px 82px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 13px;
margin: 20% 2px;
cursor: pointer;
background: lightgrey;
color: black;
}

ASPX:

<div id="myModal" class="modal">
<div class="modal-content">
<h3 class="modalHdr">
<asp:Label runat="server" Text="TRNSLTDelete Contact" />
</h3>
<asp:LinkButton ToolTip="TRNSLTNo" ID="ButtonNo" runat="server" Text="TRNSLTNo" CssClass="popupConfirm" />
<asp:LinkButton OnClick="ButtonYes_OnClick" ToolTip="TRNSLTYes" ID="ButtonYes" runat="server" Text="TRNSLTYes" CssClass="popupConfirm" />
</div>
</div>

最佳答案

尝试使用 VH 和 VW,https://css-tricks.com/viewport-sized-typography/和@media屏幕

关于c# - asp net css中的响应按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42270606/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com