我已经开始使用react-grid-gallery了,它看起来非常适合我所需要的东西。我对它唯一的问题是,我似乎不知道如何真正地将它居中。下面是它在屏幕上的显示方式:
我似乎不能调整画廊的边距,也不能使它居中。
class Testimonials extends React.Component {
render() {
return (
<div>
<h2>See what people are saying...</h2>
<body className="testimonial-body">
<p>"Dependable, trustworthy, and expert workmanship all
describe Kevin and his business.
He completely transformed our condo, painting it from top to
bottom, among other projects.
Not only does he do excellent work, but he's a
pleasure to have in your home. For any future projects,
there's no one we'd rather have than Kevin."
<span class="testimonial-signature"> - Doug and Sue ⋅ Brookfield, WI</span>
</p>
</body>
<center><Gallery images={doug_and_sue_images}/></center>
</div>
);
}
}
https://stackoverflow.com/questions/53715685
复制相似问题