您现在的位置是:首页 >学无止境 >chatgpt帮我写的一个小程序气泡框代码网站首页学无止境
chatgpt帮我写的一个小程序气泡框代码
效果图

.bubble {
position: relative;
padding: 10px;
border-radius: 8px;
background-color: #ddd;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.triangle {
position: absolute;
width: 0;
height: 0;
top: -10px;
left: 50%;
margin-left: -10px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #ddd;
}
.content {
font-size: 14px;
color: #333;
}
伪类

.bubble {
position: relative;
padding: 20px 12px;
font-size: 20px;
line-height: 26px;
color: #c0e3ff;
background: #122648;
border: 1px solid #4e637e;
border-radius: 10px;
}
.bubble::before,
.bubble::after {
position: absolute;
right: -20px;
bottom: calc(50% - 10px);
display: block;
font-size: 0;
line-height: 0;
border-color: transparent transparent transparent #122648 ;
border-style: solid;
border-width: 10px;
content: “”;
}





U8W/U8W-Mini使用与常见问题解决
QT多线程的5种用法,通过使用线程解决UI主界面的耗时操作代码,防止界面卡死。...
stm32使用HAL库配置串口中断收发数据(保姆级教程)
分享几个国内免费的ChatGPT镜像网址(亲测有效)
Allegro16.6差分等长设置及走线总结