{"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 <\/head>
\n <\/p>\n

\n

CSS border<\/h1>\n<\/p><\/div>\n
\n CSS border\u662f\u7528\u4e8e\u5728\u5143\u7d20\u4e0a\u8bbe\u7f6e\u8fb9\u6846\u7684\u7b80\u5199\u5c5e\u6027\u3002\n <\/div>\n
\n CSS\u8fb9\u6846\u5c5e\u6027\u7528\u4e8e\u6307\u5b9a\u5143\u7d20\u8fb9\u6846\u7684\u6837\u5f0f\uff0c\u989c\u8272\u548c\u5927\u5c0f\u3002 CSS\u8fb9\u6846\u5c5e\u6027\u5728\u4e0b\u9762\u7ed9\u51fa\n <\/div>\n

border-style<\/span>
\n border-color<\/span>
\n border-width<\/span>
\n border-radius<\/span> <\/p>\n

1\uff09CSS border-style<\/h2>\n
\n \"border-style\"\u5c5e\u6027\u7528\u4e8e\u6307\u5b9a\u8981\u5728\u7f51\u9875\u4e0a\u663e\u793a\u7684\u8fb9\u6846\u7c7b\u578b\u3002\n <\/div>\n
\n \u6709\u4e00\u4e9b\u8fb9\u6846\u6837\u5f0f\u503c\u4e0eborder-style\u5c5e\u6027\u4e00\u8d77\u4f7f\u7528\u4ee5\u5b9a\u4e49\u8fb9\u6846\u3002\n <\/div>\n\n\n\n\n\n\n\n\n\n\n\n\n
\u503c<\/td>\n\u8bf4\u660e<\/td>\n<\/tr>\n
none<\/td>\n\u5b83\u6ca1\u6709\u5b9a\u4e49\u4efb\u4f55\u8fb9\u6846\u3002<\/td>\n<\/tr>\n
dotted<\/td>\n\u5b83\u7528\u4e8e\u5b9a\u4e49\u865a\u7ebf\u8fb9\u6846\u3002<\/td>\n<\/tr>\n
dashed<\/td>\n\u5b83\u7528\u4e8e\u5b9a\u4e49\u865a\u7ebf\u8fb9\u6846\u3002<\/td>\n<\/tr>\n
solid<\/td>\n\u7528\u4e8e\u5b9a\u4e49\u5b9e\u7ebf\u8fb9\u6846\u3002<\/td>\n<\/tr>\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
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
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
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
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
\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
\n \u8f93\u51fa\uff1a\n <\/div>\n
\n

\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

2\uff09CSS\u8fb9\u6846\u5bbd\u5ea6<\/h2>\n
\n border-width\u5c5e\u6027\u7528\u4e8e\u8bbe\u7f6e\u8fb9\u6846\u7684\u5bbd\u5ea6\u3002\u4ee5\u50cf\u7d20\u4e3a\u5355\u4f4d\u8bbe\u7f6e\u3002\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e09\u4e2a\u9884\u5b9a\u4e49\u7684\u503c\u4e4b\u4e00\uff08\u7ec6\uff0c\u4e2d\u6216\u7c97\uff09\u6765\u8bbe\u7f6e\u8fb9\u6846\u7684\u5bbd\u5ea6\u3002\n <\/div>\n
\n \u6ce8\u610f\uff1a<\/span> border-width\u5c5e\u6027\u4e0d\u80fd\u5355\u72ec\u4f7f\u7528\u3002\u5b83\u603b\u662f\u4e0e\u5176\u4ed6\u8fb9\u6846\u5c5e\u6027\uff08\u4f8b\u5982\" border-style\"\u5c5e\u6027\uff09\u4e00\u8d77\u4f7f\u7528\uff0c\u4ee5\u9996\u5148\u8bbe\u7f6e\u8fb9\u6846\uff0c\u5426\u5219\u5c06\u65e0\u6cd5\u4f7f\u7528\u3002\n <\/div>\n
\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 \u6709\u4e09\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8bbe\u7f6e\u8fb9\u6846\u7684\u989c\u8272\u3002\n <\/div>\n

\u540d\u79f0\uff1a\u5b83\u6307\u5b9a\u989c\u8272\u540d\u79f0\u3002\u4f8b\u5982\uff1a\"\u7ea2\u8272\"\u3002 <\/span>
\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

\n \u8fd8\u6709\u4e00\u79cd\u540d\u4e3a\"\u900f\u660e\"\u7684\u8fb9\u6846\u989c\u8272\u3002\u5982\u679c\u672a\u8bbe\u7f6e\u8fb9\u6846\u989c\u8272\uff0c\u5219\u4ece\u5143\u7d20\u7684color\u5c5e\u6027\u7ee7\u627f\u3002\n <\/div>\n
\n \u6ce8\u610f\uff1a<\/span> border-color\u5c5e\u6027\u4e0d\u80fd\u5355\u72ec\u4f7f\u7528\u3002\u5b83\u603b\u662f\u4e0e\u5176\u4ed6\u8fb9\u6846\u5c5e\u6027\uff08\u4f8b\u5982\" border-style\"\u5c5e\u6027\uff09\u4e00\u8d77\u4f7f\u7528\uff0c\u4ee5\u9996\u5148\u8bbe\u7f6e\u8fb9\u6846\uff0c\u5426\u5219\u5c06\u65e0\u6cd5\u4f7f\u7528\u3002\n <\/div>\n
\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 <\/body>
\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}]}}