html - 如何在博主blogspot页面中显示div标签?

标签 html css blogger blogspot

我创建了一个名为 Bank 的页面,并希望使用 HTML 对其进行自定义。 但是当使用<div>时标记它不渲染。这是我的代码......

<div dir="ltr" style="text-align: left;" trbidi="on">
    <p style="background-color: burlywood; font-size:24">here are my three div tags</p>
    <div style="background-color: silver;margin-left: 10;visibility:visible; height:300; width:200; margin-left:10;display:inline-block"></div>
    <div style="background-color: silver; height:300; width:200;visibility:visible; display:inline-block ; margin-block-end: 10"></div>
    <div style="background-color: silver; height:300; width:200; display:inline-block" ></div>
    <p style="background-color:burlywood; font-size: 24">here my div tag ended but not rendering</p>
</div>

这是我的输出

xxxenter image description herexxx 我还从字面显示 HTML 切换到解释 HTML。在页面设置 => 选项 => 解释输入的 HTML 中。

最佳答案

您需要使用长度单位,如 px 以及高度、宽度、边距和字体大小

<div dir="ltr" style="text-align: left;" trbidi="on">
        <p style="background-color: burlywood; font-size:24px">here are my three div tags</p>
    	<div style="background-color: silver;margin-left: 10px;visibility:visible; height:300px; width:200px; margin-left:10px;display:inline-block"></div>
    	<div style="background-color: silver; height:300px; width:200px;visibility:visible; display:inline-block ; margin-block-end: 10px"></div>
    	<div style="background-color: silver; height:300px; width:200px; display:inline-block" ></div>
    	<p style="background-color:burlywood; font-size: 24px">here my div tag ended but not rendering</p>
    </div>

关于html - 如何在博主blogspot页面中显示div标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49473037/

相关文章:

javascript - JavaScript 中的移动按钮

javascript - Unicode 文本转换为十进制- Blogger

javascript - 为什么我不能左键单击我的博客文章?

image - 与同一帖子中的 youtube 视频共享时,主图像(大尺寸)显示模糊(Blogger)

css - parent 的 z-index 如何影响 child 的 z-index?

css - 从一个句子过渡到一个单词

php - CSS 网格未对齐

javascript - 我应该如何使用 javascript 在 Yahtzee 中实现三轮系统?

javascript - SweetAlert - 更改模态宽度?

html - 获取 CSS 缩放变换以更改垂直滚动条?