我想在特定页面上选择文本并进行调整。
目前,我可以使用
证明一切p {text-align: justify;}
div ( text-align: justify;}
但是只希望特定页面上的特定文本是合理的。
基本上,我要左对齐的唯一元素是wpcf7。
p {text-align: justify;}
我有div类。 entry-content,这没用,那么我有一个span类? wpcf7-form-control-wrap .... –
所以这可能只是我是否可以使用任一
将文本与wpcf7对齐的问题.wpcf7-form-control-wrap?
跨度类,或
.entry-content
?
我猜正在使用
:content()
不可能吗?
答案 0 :(得分:0)
将文本放在具有<div>
属性的class
中,然后使用CSS class selector。
.justified{
text-align: justify
}
<p>
This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified. This text is not justified.
</p>
<p class="justified">
This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified. This text is justified.
</p>
答案 1 :(得分:0)
div {text-align: justify;}
.entry-content label {text-align: left;}