css - 使用W3卡时右侧空白

标签 css w3.css

当我使用 W3-card 类时,并不总是使用元素的右侧。

我已经将 padding-right 设置为 0px 并且仍然相同。

可能是什么原因。

下面的代码

<div class="w3-content w3-card-4" style="width:500px; padding-right:2px ">
<div class="w3-row">

 <div class="col-md-7">
 <h2 style="color:blue;"> Logged Out </h2>
 <br />
 You have Logged Out Successfully.  You can <a runat="server" class="w3-badge 
 w3-purple w3-hover-blue"  href="~/Login.aspx">Login</a> here
 </div> 
 </div>
 </div>

enter image description here

最佳答案

问题是使用那个 class="col-md-7"。它限制了另一方的使用。

搞定了

关于css - 使用W3卡时右侧空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59490588/

相关文章:

css - 仅使用 CSS 隐藏表单下拉选项

javascript - 简单的 jQuery 工具提示(在 iPad 上位置扭曲)

css - 使wordpress模板移动友好

html - 如何让我的登陆页面对桌面/移动访问者有不同的规则?

responsive-design - w3-CSS : Responsive 3 columns layout with different height blocks

javascript - Masonry broken(可能是经典)

css - 背景图像在 IE 中用垂直滚动条修复,被 Tapestry5 组件/css 破坏

html - 如何使用css在html中从侧面加载图像

javascript - 当模态在 w3.css 中滚动时如何隐藏文档垂直滚动条?