Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript HTML-CSS样式:在同一行上有单独的彩色元素_Javascript_Html_Css - Fatal编程技术网

Javascript HTML-CSS样式:在同一行上有单独的彩色元素

Javascript HTML-CSS样式:在同一行上有单独的彩色元素,javascript,html,css,Javascript,Html,Css,我试图让蓝色的“65”和标题“其他”在同一条线上。我已经包括了一个图像以及当前的html 图片: HTML: 其他65 我有一个脚本,它将“65”注入到标题中,这是可行的,但我希望“65”是不同的颜色,并且与“Other”位于同一行,而不必使用表。 谢谢 添加显示内联块 <h3 id="otherHead" class="groupHeader">Other <div style="color: #5191CD; display: inline-block;">65&

我试图让蓝色的“65”和标题“其他”在同一条线上。我已经包括了一个图像以及当前的html

图片:

HTML:

其他65
我有一个脚本,它将“65”注入到标题中,这是可行的,但我希望“65”是不同的颜色,并且与“Other”位于同一行,而不必使用表。
谢谢

添加
显示内联块

<h3 id="otherHead" class="groupHeader">Other <div style="color: #5191CD; display: inline-block;">65</div></h3>
其他65

您不应该直接针对元素设置样式。考虑将元素样式移动到CSS样式表中。

< P>添加<代码>显示联机块;<代码>

<h3 id="otherHead" class="groupHeader">Other <div style="color: #5191CD; display: inline-block;">65</div></h3>
其他65

您不应该直接针对元素设置样式。考虑将元素样式移到CSS样式表中。

添加样式显示:内联块

这是同样的小提琴

其他65

添加样式显示:内联块

这是同样的小提琴

其他65
<h3 id="otherHead" class="groupHeader">Other <div style="color: #5191CD;display:inline-block">65</div></h3>