HTML autocapitalize属性与大小写控制实例页面

回到相关文章 »

效果:

切换元素:

默认

My name is zhangxinxu, I am a cool boy, HaHaHa!

autocapitalize="off"

My name is zhangxinxu, I am a cool boy, HaHaHa!

autocapitalize="none"

My name is zhangxinxu, I am a cool boy, HaHaHa!

autocapitalize="on"

My name is zhangxinxu, I am a cool boy, HaHaHa!

autocapitalize="sentences"

My name is zhangxinxu, I am a cool boy, HaHaHa!

autocapitalize="words"

My name is zhangxinxu, I am a cool boy, HaHaHa!

autocapitalize="characters"

My name is zhangxinxu, I am a cool boy, HaHaHa!

代码:

HTML代码:
<h4>默认</h4>
<p>My name is zhangxinxu, I am a cool boy, HaHaHa!</p>

<h4>autocapitalize="off"</h4>
<p autocapitalize="off">My name is zhangxinxu, I am a cool boy, HaHaHa!</p>

<h4>autocapitalize="none"</h4>
<p autocapitalize="none">My name is zhangxinxu, I am a cool boy, HaHaHa!</p>

<h4>autocapitalize="on"</h4>
<p autocapitalize="on">My name is zhangxinxu, I am a cool boy, HaHaHa!</p>

<h4>autocapitalize="sentences"</h4>
<p autocapitalize="sentences">My name is zhangxinxu, I am a cool boy, HaHaHa!</p>

<h4>autocapitalize="words"</h4>
<p autocapitalize="words">My name is zhangxinxu, I am a cool boy, HaHaHa!</p>

<h4>autocapitalize="characters"</h4>
<p autocapitalize="characters">My name is zhangxinxu, I am a cool boy, HaHaHa!</p>