{"id":5482,"date":"2021-12-23T09:48:11","date_gmt":"2021-12-23T01:48:11","guid":{"rendered":"http:\/\/www.youngzi.cn\/?p=5482"},"modified":"2021-12-23T15:59:14","modified_gmt":"2021-12-23T07:59:14","slug":"%e4%bb%80%e4%b9%88%e6%98%afcss3css3%e5%92%8ccss%e6%9c%89%e4%bb%80%e4%b9%88%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"http:\/\/www.youngzi.cn\/5482.html","title":{"rendered":"\u4ec0\u4e48\u662fCSS3?CSS3\u548cCSS\u6709\u4ec0\u4e48\u533a\u522b"},"content":{"rendered":"\n
\u4ec0\u4e48\u662fCSS\uff1f<\/p>\n\n\n\n
CSS \u662f\u5c42\u53e0\u6837\u5f0f\u8868 ( Cascading Style Sheets ) \u7684\u7b80\u79f0\u3002<\/p>\n\n\n\n
CSS \u662f\u4e00\u79cd\u6807\u8bb0\u8bed\u8a00\uff0c\u5c5e\u4e8e\u6d4f\u89c8\u5668\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u53ef\u4ee5\u76f4\u63a5\u7531\u6d4f\u89c8\u5668\u6267\u884c\uff0c\u4e0d\u9700\u8981\u7f16\u8bd1\u3002<\/p>\n\n\n\n
CSS \u662f\u7528\u6765\u8868\u73b0HTML\u6216XML\u7684\u6807\u8bb0\u8bed\u8a00\u3002<\/p>\n\n\n\n
CSS \u662f\u7531W3C\u7684CSS\u5de5\u4f5c\u7ec4\u53d1\u5e03\u63a8\u8350\u548c\u7ef4\u62a4\u7684.<\/p>\n\n\n\n
CSS \u662f\u7f16\u7a0b\u5165\u95e8\u4eba\u5458\u7684\u5fc5\u4fee\u8bfe\uff0c\u8fd0\u7528CSS\u6837\u5f0f\u53ef\u4ee5\u8ba9\u9875\u9762\u53d8\u5f97\u7f8e\u89c2\u3002<\/p>\n\n\n\n
CSS\u8bed\u6cd5\u7531\u4e09\u90e8\u5206\u6784\u6210\uff1a\u9009\u62e9\u5668\u3001\u5c5e\u6027\u548c\u503c\uff1a selector {property: value}<\/p>\n\n\n\n
CSS3\u548cCSS\u6709\u4ec0\u4e48\u533a\u522b<\/span><\/strong><\/p>\n\n\n\n CSS3 \u662f\u6700\u65b0\u7684 CSS \u6807\u51c6\u3002 CSS3\u662fCSS\uff08\u5c42\u53e0\u6837\u5f0f\u8868\uff09\u6280\u672f\u7684\u5347\u7ea7\u7248\u672c\uff0c\u4e8e1999\u5e74\u5f00\u59cb\u5236\u8ba2\uff0c2001\u5e745\u670823\u65e5W3C\u5b8c\u6210\u4e86CSS3\u7684\u5de5\u4f5c\u8349\u6848\uff0c\u4e3b\u8981\u5305\u62ec\u76d2\u5b50\u6a21\u578b\u3001\u5217\u8868\u6a21\u5757\u3001\u8d85\u94fe\u63a5\u65b9\u5f0f\u3001\u8bed\u8a00\u6a21\u5757\u3001\u80cc\u666f\u548c\u8fb9\u6846\u3001\u6587\u5b57\u7279\u6548\u3001\u591a\u680f\u5e03\u5c40\u7b49\u6a21\u5757 <\/sup> \u3002 <\/p>\n\n\n\n css3\u6bd4css\u591a\u4e86\u4e00\u4e9b\u6837\u5f0f\u8bbe\u7f6e\u800c\u5df2\u3002 css3\u662f\u5411\u524d\u517c\u5bb9\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0ccss\u4e2d\u6709\u6548\u7684code\u5728css3\u4e5f\u6709\u6548\u3002<\/p>\n\n\n\n \u4e00\u4e2acss\u4e0ecss3\u90fd\u6709\u6548\u7684code\uff0c\u5982\u679c\u6d4f\u89c8\u5668\u4e0d\u652f\u6301css3\uff0c\u90a3\u4e48\u53ea\u4f1a\u4ee5css\u7684\u6837\u5f0f\u663e\u793a\u3002\u6700\u5e38\u89c1\u7684\u5c31\u662f\u5706\u5f27\u89d2\u3002 <\/p>\n\n\n\n CSS\u6f14\u8fdb\u7684\u4e00\u4e2a\u4e3b\u8981\u53d8\u5316\u5c31\u662fW3C\u51b3\u5b9a\u5c06CSS3\u5206\u6210\u4e00\u7cfb\u5217\u6a21\u5757<\/span><\/strong>\u3002\u6d4f\u89c8\u5668\u5382\u5546\u6309CSS\u8282\u594f\u5feb\u901f\u521b\u65b0\uff0c\u56e0\u6b64\u901a\u8fc7\u91c7\u7528\u6a21\u5757\u65b9\u6cd5\uff0cCSS3\u89c4\u8303\u91cc\u7684\u5143\u7d20\u80fd\u4ee5\u4e0d\u540c\u901f\u5ea6\u5411\u524d\u53d1\u5c55\uff0c\u56e0\u4e3a\u4e0d\u540c\u7684\u6d4f\u89c8\u5668\u5382\u5546\u53ea\u652f\u6301\u7ed9\u5b9a\u7279\u6027\u3002\u4f46\u4e0d\u540c\u6d4f\u89c8\u5668\u5728\u4e0d\u540c\u65f6\u95f4\u652f\u6301\u4e0d\u540c\u7279\u6027\uff0c\u8fd9\u4e5f\u8ba9\u8de8\u6d4f\u89c8\u5668\u5f00\u53d1\u53d8\u5f97\u590d\u6742 \u3002<\/p>\n\n\n\n CSS3\u662fCSS2\u7684\u5347\u7ea7\u7248\u672c\uff0c3\u53ea\u662f\u7248\u672c\u53f7\uff0c\u5b83\u5728CSS2.1 \u7684\u57fa\u7840\u4e0a\u589e\u52a0\u4e86\u5f88\u591a\u5f3a\u5927\u7684\u65b0\u529f\u80fd\uff0c\u76ee\u524d\u4e3b\u6d4f\u89c8\u5668 Chorme\u3001Safari\u3001Firefox\u3001Opera\u3001\u751a\u81f3360\u90fd\u5df2\u7ecf\u652f\u6301\u4e86CSS3\u5927\u90e8\u5206\u529f\u80fd\u4e86\uff0cIE10\u4ee5\u540e\u4e5f\u5f00\u59cb\u5168\u9762\u652f\u6301CSS3\u4e86\u3002<\/p>\n\n\n\n \u5728\u7f16\u5199CSS3\u6837\u5f0f\u65f6\uff0c\u4e0d\u540c\u7684\u6d4f\u89c8\u5668\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u524d\u7f00\u3002\u5b83\u8868\u793a\u8be5CSS\u5c5e\u6027\u6216\u89c4\u5219\u5c1a\u672a\u6210\u4e3aW3C\u6807\u51c6\u7684\u4e00\u90e8\u5206\u3002\u662f\u6d4f\u89c8\u5668\u7684\u79c1\u6709\u5c5e\u6027\u867d\u7136\u76ee\u524d\u8f83\u65b0\u7248\u672c\u7684\u6d4f\u89c8\u5668\u90fd\u662f\u4e0d\u9700\u8981\u524d\u7f00\u7684\uff0c\u4f46\u4e3a\u4e86\u66f4\u597d\u7684\u5411\u524d\u517c\u5bb9\uff0c\u524d\u7f00\u8fd8\u662f\u5c11\u4e0d\u4e86\u7684\u3002 CSS3\u80fd\u505a\u4ec0\u4e48\uff1f\u6709\u54ea\u4e9b\u5f3a\u5927\u529f\u80fd\uff1f<\/span><\/strong><\/p>\n\n\n\n CSS3 \u628a\u5f88\u591a\u4ee5\u524d\u9700\u8981\u4f7f\u7528\u7684\u56fe\u7247\u548c\u811a\u672c\u6765\u5b9e\u73b0\u7684\u6548\u679c\uff0c\u751a\u81f3\u52a8\u753b\u6548\u679c\uff0c\u73b0\u5728\u53ea\u9700\u8981\u77ed\u77ed\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u641e\u5b9a\u3002\u6bd4\u5982\uff1a\u5706\u89d2\u3001\u56fe\u7247\u8fb9\u6846\u3001\u6587\u5b57\u9634\u5f71\u548c\u76d2\u9634\u666f\u3001\u6e10\u53d8\u3001\u4e2a\u6027\u5316\u5b57\u4f53\u3001\u591a\u56fe\u7247\u80cc\u666f\u3001\u53d8\u5f62\u5904\u7406\uff08\u65cb\u8f6c\u3001\u7f29\u653e\u3001\u503e\u659c\u3001\u79fb\u52a8\uff09\u3001\u8fc7\u6e21\u3001\u52a8\u753b\u3001\u591a\u680f\u5e03\u5c40\u3001\u5a92\u4f53\u67e5\u8be2\u7b49\u3002\u8fd8\u6709\u9009\u62e9\u5668\uff0c\u7b80\u5316\u4e86\u524d\u7aef\u5f00\u53d1\u5de5\u4f5c\u4eba\u4e2d\u5c71\u5c0f\u6984\u7684\u8bbe\u8ba1\u8fc7\u7a0b\uff0c\u52a0\u5feb\u9875\u9762\u8f7d\u5165\u901f\u5ea6\u3002<\/p>\n\n\n\n CSS3\u7b80\u5316\u4e86\u524d\u7aef\u5f00\u53d1\u5de5\u4f5c\u4eba\u5458\u7684\u8bbe\u8ba1\u8fc7\u7a0b\uff0c\u52a0\u5feb\u9875\u9762\u8f7d\u5165\u901f\u5ea6\u3002<\/p>\n\n\n\n CSS3\u90fd\u6709\u54ea\u4e9b\u5f3a\u5927\u529f\u80fd\u5462\uff1f\u5404\u4f4d\u5c0f\u4f19\u4f34\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01<\/p>\n\n\n\n CSS3\u6700\u91cd\u8981\u7684\u6a21\u5757\u5305\u62ec\uff1a<\/strong><\/p>\n\n\n\n \u9009\u62e9\u5668<\/p>\n\n\n\n \u6846\u6a21\u578b<\/p>\n\n\n\n \u80cc\u666f\u548c\u8fb9\u6846<\/p>\n\n\n\n \u6587\u672c\u6548\u679c<\/p>\n\n\n\n 2D\/3D \u8f6c\u6362<\/p>\n\n\n\n \u52a8\u753b<\/p>\n\n\n\n \u591a\u5217\u5e03\u5c40<\/p>\n\n\n\n \u7528\u6237\u754c\u9762<\/p>\n\n\n\n CSS3\u65b0\u589e\u5c5e\u6027<\/strong><\/p>\n\n\n\n box-shadow(\u9634\u5f71\u6548\u679c)<\/p>\n\n\n\n border-colors(\u4e3a\u8fb9\u6846\u8bbe\u7f6e\u591a\u79cd\u989c\u8272)<\/p>\n\n\n\n boder-image(\u56fe\u7247\u8fb9\u6846)<\/p>\n\n\n\n text-shadow(\u6587\u672c\u9634\u5f71)<\/p>\n\n\n\n text-overflow(\u6587\u672c\u622a\u65ad)<\/p>\n\n\n\n border-radius(\u5706\u89d2\u8fb9\u6846)<\/p>\n\n\n\n opacity(\u4e0d\u900f\u660e\u5ea6)<\/p>\n\n\n\n box-sizing(\u63a7\u5236\u76d2\u6a21\u578b\u7684\u7ec4\u6210\u6a21\u5f0f):\u6307\u5b9a\u4e24\u4e2aboxes\u63a5\u58e4<\/p>\n\n\n\n resize(\u5143\u7d20\u7f29\u653e):\u6307\u5b9a\u4e00\u4e2adiv\u5143\u7d20\uff0c\u5141\u8bb8\u7528\u6237\u8c03\u6574\u5927\u5c0f<\/p>\n\n\n\n outline(\u5916\u8fb9\u6846)<\/p>\n\n\n\n background-origin(\u6307\u5b9a\u80cc\u666f\u56fe\u7247\u4ece\u54ea\u91cc\u5f00\u59cb\u663e\u793a)<\/p>\n\n\n\n background-clip(\u6307\u5b9a\u80cc\u666f\u56fe\u7247\u4ece\u4ec0\u4e48\u4f4d\u7f6e\u5f00\u59cb\u88c1\u5207)<\/p>\n\n\n\n background(\u4e3a\u4e00\u4e2a\u5143\u7d20\u6307\u5b9a\u591a\u4e2a\u80cc\u666f)
\u4e00\u4e2a\u53ea\u5728css3\u4e2d\u6709\u6548\u7684code\uff0c\u5982\u679c\u6d4f\u89c8\u5668\u4e0d\u652f\u6301css3\uff0c\u90a3\u4e48\u5176\u663e\u793a\u6548\u679c\u5c31\u4e0d\u4f1a\u51fa\u73b0\u3002 css3\u548ccss\uff0c\u5728\u7f16\u5199code\u7684\u65f6\u5019\uff0c\u9664\u4e86\u5bf9\u4e00\u4e9bcss3\u4e2d\u65b0\u51fa\u73b0\u7684\u5c5e\u6027\u8bbe\u7f6e\uff0c\u5176\u5b83\u5b8c\u5168\u4e00\u6837\u3002<\/p>\n\n\n\n<\/figure>\n\n\n\n
Chrome \u548c Safari\uff1a-webkit
Firefox\uff1a-moz
IE\uff1a-ms
Opera\uff1a-o<\/p>\n\n\n\n
<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":5483,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"themepark_post_bcolor":"#f5f5f5","themepark_post_width":"1022px","themepark_post_img":"","themepark_post_img_po":"left","themepark_post_img_re":false,"themepark_post_img_cover":false,"themepark_post_img_fixed":false,"themepark_post_hide_title":false,"themepark_post_main_b":"","themepark_post_main_p":100,"themepark_paddingblock":false,"footnotes":""},"categories":[4,18],"tags":[19],"class_list":["post-5482","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jishufuwu","category-wangyesheji","tag-css"],"metadata":{"_edit_lock":["1640249035:1"],"_thumbnail_id":["5483"],"_edit_last":["1"],"wb_bsl_daily_push":["0"],"catce":["sidebar-widgets4"],"temp2":["\u5206\u7c7b\u5934\u90e8"],"themepark_seo_title":["\u4ec0\u4e48\u662fCSS3?CSS3\u548cCSS\u6709\u4ec0\u4e48\u533a\u522b"],"themepark_seo_description":["\u5c42\u53e0\u6837\u5f0f\u8868\uff09\u6280\u672f\u7684\u5347\u7ea7\u7248\u672c\uff0c\u4e8e1999\u5e74\u5f00\u59cb\u5236\u8ba2\uff0c2001\u5e745\u670823\u65e5W3C\u5b8c\u6210\u4e86CSS3\u7684\u5de5\u4f5c\u8349\u6848\uff0c\u4e3b\u8981\u5305\u62ec\u76d2\u5b50\u6a21\u578b\u3001\u5217\u8868\u6a21\u5757\u3001\u8d85\u94fe\u63a5\u65b9\u5f0f\u3001\u8bed\u8a00\u6a21\u5757\u3001\u80cc\u666f\u548c\u8fb9\u6846\u3001\u6587\u5b57\u7279\u6548\u3001\u591a\u680f\u5e03\u5c40\u7b49\u6a21\u5757\u00a0\u00a0\u3002"],"themepark_seo_keyword":["CSS,CSS3,CSS\u6837\u5f0f,CSS\u57fa\u7840\u77e5\u8bc6,CSS\u5199\u6cd5,CSS\u6559\u5b66,CSS\u77e5\u8bc6\u70b9,CSS\u8bed\u6cd5\u8be6\u89e3,CSS\u7528\u5904,CSS\u529f\u80fd,CSS\u4ee3\u7801,CSS3\u548cCSS\u7684\u533a\u522b"],"_yoast_wpseo_primary_category":["4"],"_yoast_wpseo_content_score":["90"],"_yoast_wpseo_estimated-reading-time-minutes":["1"],"views":["3984"],"url_in_baidu_ymd":["2022-06-23 00:27:11"],"url_in_baidu":["2"]},"yoast_head":"\n