BY LOUIS MOORE ON " pubdate> -6ren">
gpt4 book ai didi

CSS 定位

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

放置某物的正确方法是什么?我有一个在中心显示博客文章的 div。

<div class="box">

<?php while ( have_posts() ) : the_post(); ?>
<article>
<h2><a href="<?php esc_url( the_permalink() ); ?>"<?php the_title(); ?>" rel="bookmark"> <?php the_title(); ?></a></h2>
<h7>BY LOUIS MOORE ON</h7> <time datetime="<?php the_time( 'Y-m-d' ); ?>" pubdate><?php the_date(); ?> <?php the_time(); ?></time><?php the_content(); ?></br>
<div class="h9"></div>
</article></br></br></br>
<?php endwhile; ?>

</div>

CSS:

.box {
text-align: center;
background-color: #F1F2F2;
border: 1.5px #D1D3D4 solid;
border-bottom: 3px solid red;
margin: 5px;
padding: 10px;
min-width: 90%;
}

我想添加“在 Twitter 上关注我”,然后添加一个 Twitter 按钮,但我希​​望它显示在 div 框的右侧。执行此操作的正确方法是什么?

最佳答案

.followme {
position: absolute;

left:30%;
bottom: 70%;
}

关于CSS 定位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14142219/

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