基本上,我想在同一行上有一个h1和ap元素,但对齐关闭很多(这意味着H1比P高,看起来很糟糕),我从来没有这样做过之前的CSS!在同一行文字上对齐不同的字体大小看起来不错?
我扔在一起的jsfiddle陪此,这里是代码:
<h1 style="float:left;display:inline;">"Hi!</h1><p style="float:left;display:inline;">I'm James, and I <strong>LOVE</strong> building clean, fast and (most importantly) effective websites. Oh, and I also know a thing or two about computers.</p><h1 style="float:left;display:inline">"</h1>
谢谢!
你能展示一个你想要它的样子吗? – Stobor