我想知道我是否能得到别人的帮助,因为我很难在书页的中间竖直和水平地对文本进行居中。
谢谢你抽出时间,祝你今天愉快。
html:
<div class="somethingsimple">
</p>"...I place importance on honesty and expressiveness when creating for a society that is heavily influenced by art."</p>
</div>
Css:
.somethingsimple
{
po
我试图滚动到div中的一个元素,并在div中垂直居中。
到目前为止,我已经尝试了这个,但没有成功。
jQuery(document).on('click', '#scroll_button', function(e) {
var el = $( "#scroll_test" );
var elOffset = el.offset().top;
var elHeight = el.height();
var windowHeight = $("#editor").height();
var o