gpt4 book ai didi

html - 无法在 Bootstrap 列中设置元素样式

转载 作者:行者123 更新时间:2023-11-28 06:36:27 25 4
gpt4 key购买 nike

在我的生活中,我无法让我的 html 元素在我的页面的一部分中设置样式。使用 bootstrap 并进行一些奇怪的专栏内容,不确定是否是造成问题的原因。请帮助我,这让我发疯。

HTML:

 <div class="search-links">
<div class="container-fluid">
<div class="row">
<div class="col-md-4 col-md-push-6 col-md-pull-2">
<img src="media/Travis-Thielen-high-fiving-bear-in-bar.JPG" alt="Travis Thielen high fiving a bear in a San Francisco Bar" width="49%" />
<img src="media/Travis-Thielen-at-great-wall-of-china.JPG" alt="Travis Thielen high fiving a bear in a San Francisco Bar" width="49%" />
<h1>Travis Thielen</h1>
<ul class="list-inline">
<li><p>Contact</p></li>
<li><p>Directions</p></li>
</ul>
</div>
<div class="job-info col-md-5 col-md-pull-5 col-md-offset-2">
<p>test test test test ewst steesk test teest tesrt tesr isnt a test this is now a test</p>
</div>
</div>
</div>
</div>

CSS:

.search-links ul {
margin-left: 2em;

只是一个例子。我无法对任何元素执行任何操作,列 div 上没有边框,什么都没有。

最佳答案

也许您可以覆盖 Bootstrap 样式。

.search-links ul {
margin-left: 2em !important;
}

关于html - 无法在 Bootstrap 列中设置元素样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34648749/

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