ホームページ  >  記事  >  ウェブフロントエンド  >  CSS3 新しい UI スタイル_html/css_WEB-ITnose

CSS3 新しい UI スタイル_html/css_WEB-ITnose

WBOY
WBOYオリジナル
2016-06-24 11:35:341078ブラウズ

  1. 角丸、境界半径: 1 ~ 4 の数字/1 ~ 4 の数字、前面は水平、背面は垂直、「/」がない場合は、水平と垂直が同じであることを意味します。例:
  2. <head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <title>无标题文档</title>    <style><br />      // 如果是两个数字,则左上角和右下角一样,右上角和左下角一样        .box{width:200px;height:200px;border:1px solid #000; border-radius:20px;}    </style></head><body>    <div class="box"></div></body>

  3. <head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <title>无标题文档</title>    <style>        // 100px/150px表示每个角的水平和垂直,同时可以前面四个/后面四个,则分别表示四个角的水平和四个角的垂直        .box{width:200px;height:300px;border:1px solid #000;border-radius:100px/150px;}    </style></head><body>    <div class="box"></div></body>

  4. ボーダー背景
  5. <head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <title>无标题文档</title><style>    .box{width:200px;height:60px; -webkit-border-image:url(bt_blue.png) 0 10;border-left-width:10px;border-right-width:10px;}</style></head><body>    <div class="box"></div></body>

  6. 線形グラデーション

    <head>    <meta http-equiv="Content-Type" content="textml; charset=utf-8">    <title>无标题文档</title><style>    .box{width:300px;height:300px;border:10px solid #000; background-image:-webkit-linear-gradient(60deg,red,blue);}</style></head><body>    <div class="box"></div></body>

  7. 複数の背景を設定できます

    <head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    <title>无标题文档</title>    <style>        .box{width:300px;height:300px;background:url(bt_blue.png) no-repeat, url(border.png) repeat-y right 0;}    </style></head><body>    <div class="box"></div></body>

  8. border-image: border image
  9. border-image-source: 画像の紹介
  10. border-image-slice: 画像の切り取り
  11. border-image-width: ボーダーの幅
  12. border-image-repeat: 画像の配置(丸型タイリング、リピート、ストレッチ)
  13. border-colors: 境界線の色
  14. 背景サイズ: 背景サイズ: x、y (100% 100%)
  15. background-origin: 境界領域から開始することを示します | 背景を表示します、パディング領域から開始して背景を表示し、コンテンツ領域から開始して背景を表示します
  16. border-clip: border (境界領域から外側に背景をクリップします)、padding (パディング領域から外側に背景をクリップします)、content (コンテンツ領域から外側に背景を切り取る) 外側を切り抜いた背景)
  17. Mask

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。