两个CSS问题 - 删除H1换行wordpress [英] Two CSS Questions - Removing H1 line break on wordpress

查看:92
本文介绍了两个CSS问题 - 删除H1换行wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的h1问题:[链接删除]
我需要h1混合到段落完美的seo目的。

Here's my h1 problem:[link removed] i need the h1 to blend into the paragraphs perfectly for seo purposes. the tags are around Long Island.

我的css设置为h1 {display:inline; padding:0; margin:0; font-weight:normal; font- size:17px;}仍然打破...。我尝试添加类似的东西到< p>,但它完全取出了所有的休息,我仍然需要一些休息!

I have the css set to h1{display: inline;padding:0;margin:0;font-weight:normal;font-size:17px;} still breaking... before. i tried adding similar stuff to "< p >" but it completely took out all the breaks, i still need some breaks!

推荐答案

p> u只能使用H1。使用span来为h1中的特定字词进行样式。

u can just use a H1. use a span to style specific words within your h1.

<h1>Welcome! My name is Nancy Lewis and I’m from <span>Long Island</span></h1>

然后,您可以按照自己的喜好来定义单词Long Island。

Then u can style the words Long Island as you like

h1 span {font-weight:700} /*or whatever you like*/

对于第二个例子,尝试为你的身体放置保证金。

for the second example, try to put margin yo for your body

body {margin:0}

这篇关于两个CSS问题 - 删除H1换行wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆