显示< H1> < H5>使用CSS文本内联 [英] Showing <h1> <h5> text inline using css

查看:116
本文介绍了显示< H1> < H5>使用CSS文本内联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示情感分析使得S要远远大于 H5 文本。

I want to show "Sentiment analysis" such that S should be much larger then h5 text.

有什么毛病follwing code:

What's wrong with follwing code:

HTML:

<h1>S</h1> <h5>entiment Analysis</h5>      

CSS:

h1 {
    margin-left: 36%;
    color:#C0C0C0;
    font-family: "calibri";
    text-decoration:underline;
    white-space: pre;
}

h5 {
    margin-left: 36%;
    color:#C0C0C0;
    font-family: "calibri";
    text-decoration:underline;
    white-space: pre;
}

直播$ C $在codePAN

推荐答案

这是一个混乱的code。如果你只想做第一个字母变大,你可以试试下面的。

That's a messy code. If you just want to make the first letter Bigger, You can try the following.

工作演示

Working Demo

HTML

<div>Sentiment analysis</div> 

CSS

div:first-letter {
  font-size:30px;
  font-weight:bold;
}

这篇关于显示&LT; H1&GT; &LT; H5&GT;使用CSS文本内联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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