Home Web Front-end HTML Tutorial CSS3新增UI样式_html/css_WEB-ITnose

CSS3新增UI样式_html/css_WEB-ITnose

Jun 24, 2016 am 11:35 AM

  1. 圆角,border-radius: 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>
    Copy after login

  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>
    Copy after login

  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>
    Copy after login

  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>
    Copy after login

  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>
    Copy after login

     

  8. border-image:边框图片
  9. border-image-source: 引入图片
  10. border-image-slice: 切割图片
  11. border-image-width: 边框宽度
  12. border-image-repeat: 图片的排列方式(round 平铺, repeat 重复, stretch 拉伸)
  13. border-colors:边框颜色
  14. 背景尺寸: background-size: x, y (100% 100%)
  15. background-origin: border | padding | content  -box,分别表示从border区域开始显示背景,从padding区域开始显示背景,从content区域开始显示背景
  16. border-clip : border(从border区域向外裁剪背景), padding(从padding区域向外裁剪背景),content(从content区域向外裁剪背景)
  17.   遮罩

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update? Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update? Mar 04, 2025 pm 12:32 PM

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?

How do I use HTML5 form validation attributes to validate user input? How do I use HTML5 form validation attributes to validate user input? Mar 17, 2025 pm 12:27 PM

How do I use HTML5 form validation attributes to validate user input?

How to efficiently add stroke effects to PNG images on web pages? How to efficiently add stroke effects to PNG images on web pages? Mar 04, 2025 pm 02:39 PM

How to efficiently add stroke effects to PNG images on web pages?

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

What is the purpose of the <iframe> tag? What are the security considerations when using it?

What are the security implications of using iframes, and how can I mitigate them? What are the security implications of using iframes, and how can I mitigate them? Mar 18, 2025 pm 02:51 PM

What are the security implications of using iframes, and how can I mitigate them?

What are the best practices for cross-browser compatibility in HTML5? What are the best practices for cross-browser compatibility in HTML5? Mar 17, 2025 pm 12:20 PM

What are the best practices for cross-browser compatibility in HTML5?

How do I use the HTML5 <time> element to represent dates and times semantically? How do I use the HTML5 <time> element to represent dates and times semantically? Mar 12, 2025 pm 04:05 PM

How do I use the HTML5 <time> element to represent dates and times semantically?

How do I use the HTML5 <meter> element to display numerical data within a range? How do I use the HTML5 <meter> element to display numerical data within a range? Mar 12, 2025 pm 04:08 PM

How do I use the HTML5 <meter> element to display numerical data within a range?

See all articles