实际上是否可以更改<h2> div“组”?

时间:2018-10-12 16:31:29

标签: javascript html css tumblr

问题是我已经有图片标题了,但是当我从tumblr的移动应用发布时,另一个标题出现了。如何将<h2>“传送”到.innertitle

/* begin snippet: js hide: false console: true babel: false */

css:

.innertitle {
          position: absolute;
          top: 0;
          height: 15%;
          font-size: 1.5vw;
          font-family: sans-serif;
                }

    .contentbox {
          width: 40%;
          background: #ccc;
          position: relative;
          height: auto;
                }

    .img-around img {
          margin-top: 50px;
          width: 100%;
    }

html:

<div {block:Tags}id="{Tag}"{/block:Tags} class="contentbox">
                    <div class="innertitle">
                        {block:Caption}{Caption}{/block:Caption}
                    </div>
                    <div class="innerbox">
                        <div class="img-around">
                            <img src="https://66.media.tumblr.com/1efb53fff593aeb137b3c9b7b018a708/tumblr_pgggijEb4G1x36lvho1_1280.png">
                        <h2>This is appearing automatically.</h2>
                        </div>
                    </div>
                </div>

1 个答案:

答案 0 :(得分:1)

很抱歉,很久以前,我非常不懂英语。

对于未来,谁对解决这个问题感兴趣,我所做的是我在Tumblr的移动应用程序和网站上发布了各种帖子。然后,我打开了DevTools,并查看了从移动应用程序和网站发布的帖子有何不同。 问题在于,Tumblr出于某种原因将帖子的p,h1,h2标签放置在移动应用程序中。所以我只需要设置它们的样式。 再次为该帖子感到抱歉。

相关问题