网页制作中使用什么标记符给图像加边框

2025-04-13 08:57:45
推荐回答(1个)
回答(1):

直接border=1,或者使用css

img {
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
/*定义图片边框*/

颜色需要在css里边加上

border-top-color: #FF0000;
border-right-color: #FF0000;
border-bottom-color: #FF0000;
border-left-color: #FF0000;