
在前端做项目时,我们可能会遇到写对话框的需求,这次做视频会议页面就遇到了,记录下日后有个参照。
//网页部分
- <div class="begin">会议马上开始
- <div class="arrow"></div>
- </div>
- <div class="beginer">好的
- <div class="arrower"></div>
- </div>
//css部分
- .begin{
- position: relative;
- width: 150px;
- height: 30px;
- background: white;
- border-radius: 5px;
- /* 圆角 */
- margin: 0px auto 0;
- margin-right: 30px;
- text-indent: 6px;
- line-height: 35px;
- }
-
- .begin.arrow {
- position: absolute;
- top: 5px;
- right: -16px;
- /* 圆角的位置*/
- width: 0;
- height: 0;
- font-size: 0;
- border: solid 8px;
- border-color: white #4D4948 #4D4948 white;
- }
- /**左*/
-
- .beginer {
- position: relative;
- width: 50px;
- height: 30px;
- background: white;
- border-radius: 5px;
- /* 圆角 */
- margin: 5px 20px 0px;
- text-indent: 6px;
- line-height: 35px;
- }
-
- .beginer .arrower {
- position: absolute;
- top: 8px;
- left: -16px;
- /* 圆角的位置 */
- width: 0;
- height: 0;
- font-size: 0;
- border: solid 8px;
- border-color: #4D4948 white white #4D4948;
- }
-
效果如图所示,可根据需求更改
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739
评价
排名
19
文章
24
粉丝
11
评论
15
css实现简单矩形对话框
剑轩 : 现在来看一下,这个正好用到
三分钟快速复习MVC知识
瑾语 : 棒 总结的很好
渣渣学安卓之时间选择器和文本框操作
修心 : 666666横线的方式和我想法完全一样
渣渣学安卓之banner图和首页布局
cycwind : zb
渣渣学安卓之banner图和首页布局
晓见 : 哇哦,小姐姐这个系列文章写得很好哇,期待更多佳作~
渣渣学安卓之登录摸索及页面效果实现
剑轩 : 帅帅帅帅帅!那个背景图是不是有点太大了哦。哈哈相素太高了么,可...
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术
剑轩
现在来看一下,这个正好用到