1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HTMLで部分的にイタリックにする方法

Posted at

なんのための記事か?

知らないことはすげー怖い。
て思ったから備忘録も兼ねてシェア。

HTMLで記述される文字を部分的にイタリック体にするには?

方法1(超簡単)

HTML
<p>前部分<i>イタリック部分</i>後部分</p>

参考URL 文中のイタリック体の「性欲」に注目。
https://storage.googleapis.com/edd-homepage/IntroductionEdD/index.html

方法2(すげー力技)

bootstrapを利用。

<p class="forItalic"></p>前部分<p class="forItalic">イタリック部分</p><p class="forItalic">後部分</p>

.forItalic{
 display:inline;
}

最後に

ほんのちょっとしたことなんだけど、
知っているのと知らないのでラクしてトクする具合が大きく変わってくるから、
もっと簡単な方法があるんじゃないか?って常に疑問を持つ心を持とう!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?