当我在WP中使用文本编辑器时,我有两个选择:
<p>和<br>标签,我像网上其他数百万人一样疯狂...我想在普通的html页面上工作:当我按下"输入"时,它会在我们在屏幕上看到它时给出一个空行,当我们在添加代码,它提供了一个代码,其行为类似于代码.
现在,例如,如果我在文本中这样做:
"this is a sample sentences <h2>here i want two words with h2 style</h2> here my sentence continues...", 在现实中,它给出了这样的结果:
<p>this is a sample sentences <br />
<h2>here i want two words with h2 style</h2><br />
here my sentence continues...</p>
Run Code Online (Sandbox Code Playgroud)
我理解并且我试图通过添加remove_filter ('the_content', 'wpautop');到函数文件来删除自动化,但在这种情况下,在每个换行符时我必须添加一个疯狂的代码.
有解决方案???
我有像网格一样的内联阻塞div.我想强迫同一行中的所有人都达到相同的高度,他们应该得到最长的div的高度.
Css,jquery或简单的JavaScript解决方案会很棒.
这是现在非常普遍的事情......我去看了一下砌体,但就我对样品图形的理解而言,它并没有像这样对齐......我是对的吗?
有问题的博客:http://ildesign-blogger-demo-1.blogspot.fr/
HTML:
<div class="container>
<div class="inline">text</div>
<div class="inline">text + image</div>
<div class="inline">text</div>
<div class="inline">whatever</div>
<div class="inline">text + image</div>
<div class="inline">text</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
.container {width: 100%; display:block;}
.inline {display: inline-block; width: 28%; margin: 1%; padding: 1%;}
Run Code Online (Sandbox Code Playgroud)
所以,每行中有三个内联div,我希望这些行是对齐的,所以内联div应该具有相同的高度,就像行中最长的div一样......
编辑:我重新编辑了这篇文章,以补充说明html是由Blogger xml模板生成的.所以,如果你建议将每个三个内联div添加到一个div中,就像一行,我不知道该怎么做...原始的xml代码:
<div class='blog-posts hfeed'>
<b:include data='top' name='status-message'/>
<data:defaultAdStart/>
<b:loop values='data:posts' var='post'>
<div class='date-outer'>
<h2 class='date-header'><span><data:post.timestamp/></span></h2>
<div class='date-posts'>
<div class='post-outer'>
<b:include data='post' name='post'/>
<b:if cond='data:blog.pageType == "static_page"'>
<b:include data='post' name='comments'/>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comments'/> …Run Code Online (Sandbox Code Playgroud) 我开始被混淆>,:nth-child()和:nth-of-type().
我有 :
<div class="entry-content">
<div class="first-img">
<img />
</div>
<div class="first-box">
<blockquote></blockquote>
</div>
<blockquote></blockquote>
</div>
Run Code Online (Sandbox Code Playgroud)
我想设置第一个blockquote直接在其中的样式.entry-content(这意味着这是blockquote示例中的第二个)但不是第一个blockquote在div中.first-box.
我试过了.entry-content > blockquote:nth-child(2),.entry-content:nth-of-type(2)他们也不行.
是否.entry-content > blockquote意味着: