2 css3 新增属性
2.1
新增服务器字体
css3 之前是能使用本地字体,css3 可以使用服务器字体。
<style>
@font-face
{
font-family: myFont;
src: url(sansation_light.woff);
}
div
{
font-family:myFont;
}
</style>
2.2 新增文本相关属性
normal/break-all/keep-all
normal 使用浏览器默认的换行规则。
break-all 允许在单词内换行。
keep-all 只能在半角空格或连字符处
换行。
normal/break-word
normal 只在允许的断字点换行(浏览器
保持默认处理)。
break-word 在长单词或 URL 地址内部
进行换行。
Hooray! It's snowing! It's time to make a snowman.James runs out. He makes a big pile of snow. He puts a big snowball on top. He
adds a scarf and a hat. He adds an orange for the nose. He adds coal for the eyes and buttons.In the evening, James opens the door.
What does he see? The snowman is moving! James invites him in. The snowman has never been inside a house. He says hello to the
cat. He plays with paper towels.A moment later, the snowman takes James's hand and goes out.They go up, up, up into the air! They
are flying! What a wonderful night!The next morning, James jumps out of bed. He runs to the door.He wants to thank the snowman. But
he's gone.