javascript - CSS对齐被推到页面底部
问题描述
我有一个文本框,我想将其与图像旁边的页面右侧对齐,但我不知道从页面底部移动(抱歉编码时背景非常有限,所以任何帮助都是非常感激)。这是 CSS 和 JS 字符串变量,这里有什么问题吗?
<table id="mtable" border="0" cellspacing="0" align="left"
<p><span style="font-size: 140%;"><strong> </strong></span></p>
<p><span style="color: #9db68c;"><strong style="font-size: 150%;"><span style="font-size: 150%;"><span style="font-size: 140%;">15</span><span style="font-size: 140%;">th Annual</span></span></strong></span></p>
<p><span style="color: #9db68c;"><strong style="font-size: 150%;"><span style="font-size: 140%;">James McNaughton Tribute</span></strong></span></p>
<p><span style="color: #9db68c;"><strong> </strong></span></p>
<strong>
<div id="_mcePaste" style="display: inline !important; font-size: 100%;"><span style="font-size: 120%;">Saturday January 25th, 2020</span></div>
</strong> <span style="color: #9db68c;"><strong>
<div id="_mcePaste">Live Music, Raffles, Giveaways,</div>
<div id="_mcePaste"> Drink Specials, Free Food & Much More!</div>
<div id="_mcePaste">Mulcahy’s Pub & Music Hall</div>
<div id="_mcePaste">3232 Railroad Avenue</div>
<div id="_mcePaste">Wantagh, NY 11793</div>
<div id="_mcePaste">1:00pm - 9:00pm</div>
<div>$20 DONATION</div>
</strong></span><div>DOWNLOAD : <a href="/storage/2019 Flyer for Benefit_small.jpg">2020 EVENT FLYER</a></div></div>
The PTSD Veterans Association of Northport is dedicated to veterans from all eras who seek relief from their Post-Traumatic Stress. Please visit <a href="http://www.ptsdveteransassociation.org/">www.ptsdveteransassociation.org</a> to donate or for more information.</div>
解决方案
您的 HTML 没有组织。使用更简洁的代码。如下所示:
<div class="row">
<div class="col-6">
<p>Column content</p>
</div>
<div class="col-6">
<p>Second column content</p>
</div>
</div>
我希望它有所帮助。
推荐阅读
- ansible - 仅在 SUSE 机器上运行 Ansible 任务
- android - 无法从 Firebase 数据库中删除节点?
- c++11 - 使用 gtest gtest_force_shared_crt 构建不起作用
- reactjs - 使用 Git 网关配置 Netlify CMS 的问题
- python - ImportError:无法从“pip._internal.cli”导入名称“cmdoptions”
- python - 试图将 C++ 客户端连接到 python 服务器
- css - 有没有办法排列盒子
- excel - 每分钟复制范围(可以更改)
- sass - 如何在 Sass 中使用 @use 规则扩展占位符选择器
- ruby-on-rails - 在单独的模型 Rails 中查询两个不同的模型