{"id":2349,"date":"2023-11-14T15:10:41","date_gmt":"2023-11-14T03:59:48","guid":{"rendered":""},"modified":"2023-11-14T11:59:48","modified_gmt":"2023-11-14T03:59:48","slug":"CSS border","status":"publish","type":"post","link":"https:\/\/bianchenghao6.com\/2349.html","title":{"rendered":"CSS border"},"content":{"rendered":"
\n
border-style<\/span> \u6ca1\u6709\u8fb9\u6846\u3002<\/p>\n \u865a\u7ebf\u8fb9\u6846\u3002<\/p>\n \u865a\u7ebf\u8fb9\u6846\u3002<\/p>\n \u5b9e\u7ebf\u8fb9\u6846\u3002<\/p>\n \u53cc\u8fb9\u6846\u3002<\/p>\n \u51f9\u69fd\u8fb9\u6846\u3002<\/p>\n \u5c71\u810a\u8fb9\u6846\u3002<\/p>\n \u5d4c\u5165\u8fb9\u6846\u3002<\/p>\n \u8d77\u59cb\u8fb9\u6846\u3002<\/p>\n \u9690\u85cf\u8fb9\u6846\u3002<\/p>\n<\/p><\/div>\n \u540d\u79f0\uff1a\u5b83\u6307\u5b9a\u989c\u8272\u540d\u79f0\u3002\u4f8b\u5982\uff1a\"\u7ea2\u8272\"\u3002 <\/span> \n <\/body>
\n border-color<\/span>
\n border-width<\/span>
\n border-radius<\/span> <\/p>\n 1\uff09CSS border-style<\/h2>\n
\n\n
\n \u503c<\/td>\n \u8bf4\u660e<\/td>\n<\/tr>\n \n none<\/td>\n \u5b83\u6ca1\u6709\u5b9a\u4e49\u4efb\u4f55\u8fb9\u6846\u3002<\/td>\n<\/tr>\n \n dotted<\/td>\n \u5b83\u7528\u4e8e\u5b9a\u4e49\u865a\u7ebf\u8fb9\u6846\u3002<\/td>\n<\/tr>\n \n dashed<\/td>\n \u5b83\u7528\u4e8e\u5b9a\u4e49\u865a\u7ebf\u8fb9\u6846\u3002<\/td>\n<\/tr>\n \n solid<\/td>\n \u7528\u4e8e\u5b9a\u4e49\u5b9e\u7ebf\u8fb9\u6846\u3002<\/td>\n<\/tr>\n \n double <\/td>\n \u5b83\u5b9a\u4e49\u4e86\u4e24\u4e2a\u5177\u6709\u76f8\u540c\u8fb9\u6846\u5bbd\u5ea6\u503c\u7684\u8fb9\u6846\u3002<\/td>\n<\/tr>\n \n groove<\/td>\n \u5b83\u5b9a\u4e49\u4e86\u4e00\u4e2a3d\u6c9f\u69fd\u8fb9\u6846\u3002\u6548\u679c\u662f\u6839\u636e\u8fb9\u6846\u989c\u8272\u503c\u751f\u6210\u7684\u3002<\/td>\n<\/tr>\n \n ridge<\/td>\n \u5b83\u5b9a\u4e49\u4e86\u4e00\u4e2a3d\u810a\u5f62\u8fb9\u6846\u3002\u6548\u679c\u662f\u6839\u636e\u8fb9\u6846\u989c\u8272\u503c\u751f\u6210\u7684\u3002<\/td>\n<\/tr>\n \n inset<\/td>\n \u5b83\u5b9a\u4e49\u4e863d\u63d2\u5165\u8fb9\u6846\u3002\u6548\u679c\u662f\u6839\u636e\u8fb9\u6846\u989c\u8272\u503c\u751f\u6210\u7684\u3002<\/td>\n<\/tr>\n \n outset<\/td>\n \u5b83\u5b9a\u4e493d\u8d77\u59cb\u8fb9\u6846\u3002\u6548\u679c\u662f\u6839\u636e\u8fb9\u6846\u989c\u8272\u503c\u751f\u6210\u7684\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <!DOCTYPE html>
<html>
<head>
<style>
p.none {border-style: none;}
p.dotted {border-style: dotted;}
p.dashed {border-style: dashed;}
p.solid {border-style: solid;}
p.double {border-style: double;}
p.groove {border-style: groove;}
p.ridge {border-style: ridge;}
p.inset {border-style: inset;}
p.outset {border-style: outset;}
p.hidden {border-style: hidden;}
<\/style>
<\/head>
<body>
<p class=\"none\">\u6ca1\u6709\u8fb9\u6846\u3002<\/p>
<p class=\"dotted\">\u865a\u7ebf\u8fb9\u6846\u3002<\/p>
<p class=\"dashed\">\u865a\u7ebf\u8fb9\u6846\u3002<\/p>
<p class=\"solid\">\u5b9e\u7ebf\u8fb9\u6846\u3002<\/p>
<p class=\"double\">\u53cc\u8fb9\u6846\u3002<\/p>
<p class=\"groove\">\u51f9\u69fd\u8fb9\u6846\u3002<\/p>
<p class=\"ridge\">\u5c71\u810a\u8fb9\u6846\u3002<\/p>
<p class=\"inset\">\u5d4c\u5165\u8fb9\u6846\u3002<\/p>
<p class=\"outset\">\u8d77\u59cb\u8fb9\u6846\u3002<\/p>
<p class=\"hidden\">\u9690\u85cf\u8fb9\u6846\u3002<\/p>
<\/body>
<\/html>
<\/span><\/code><\/pre>\n<\/p><\/div>\n 2\uff09CSS\u8fb9\u6846\u5bbd\u5ea6<\/h2>\n
<!DOCTYPE html>
<html>
<head>
<style>
p.one {
border-style: solid;
border-width: 5px;
}
p.two {
border-style: solid;
border-width: medium;
}
p.three {
border-style: solid;
border-width: 1px;
}
<\/style>
<\/head>
<body>
<p class=\"one\">Write your text here.<\/p>
<p class=\"two\">Write your text here.<\/p>
<p class=\"three\">Write your text here.<\/p>
<\/body>
<\/html>
<\/span><\/code><\/pre>\n<\/p><\/div>\n 3\uff09CSS\u8fb9\u6846\u989c\u8272<\/h2>\n
\n RGB\uff1a\u5b83\u6307\u5b9a\u989c\u8272\u7684RGB\u503c\u3002\u4f8b\u5982\uff1a\" rgb\uff08255,0,0\uff09\"\u3002<\/span>
\n \u5341\u516d\u8fdb\u5236\uff1a\u5b83\u6307\u5b9a\u989c\u8272\u7684\u5341\u516d\u8fdb\u5236\u503c\u3002\u4f8b\u5982\uff1a\"#ff0000\"\u3002<\/span> <\/p>\n <!DOCTYPE html>
<html>
<head>
<style>
p.one {
border-style: solid;
border-color: red;
}
p.two {
border-style: solid;
border-color: #98bf21;
<\/span> }
<\/style>
<\/head>
<body>
<p class=\"one\">This is a solid red border<\/p>
<p class=\"two\">This is a solid green border<\/p>
<\/body>
<\/html>
<\/span><\/code><\/pre>\n<\/p><\/div>\n
\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"zh-cn","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[175],"tags":[],"class_list":["post-2349","post","type-post","status-publish","format-standard","hentry","category-css-jc"],"_links":{"self":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/2349"}],"collection":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/comments?post=2349"}],"version-history":[{"count":0,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/2349\/revisions"}],"wp:attachment":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/media?parent=2349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/categories?post=2349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/tags?post=2349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}