当前位置: 首页> 娱乐> 八卦 > 网络规划设计师考试内容有哪些_食品批发网_经典营销案例100例_赣州是哪个省

网络规划设计师考试内容有哪些_食品批发网_经典营销案例100例_赣州是哪个省

时间:2025/7/20 3:04:56来源:https://blog.csdn.net/i8013/article/details/146910600 浏览次数:0次
网络规划设计师考试内容有哪些_食品批发网_经典营销案例100例_赣州是哪个省

运行后将显示8种不同颜色的警报框,从上到下依次为:

蓝色 (primary)

灰色 (secondary)

绿色 (success)

红色 (danger)

黄色 (warning)

浅蓝 (info)

浅灰 (light)

深灰 (dark)

unit Unit1;interfaceusesClasses, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes,IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl, IWCompLabel,Vcl.Controls, Vcl.Forms, IWVCLBaseContainer, IWContainer, IWHTMLContainer,IWHTML40Container, IWRegion, IWBS4CustomRegion, IWBS4Region;typeTIWForm1 = class(TIWAppForm)IWBS4Region1: TIWBS4Region;IWLabel1: TIWLabel;IWLabel2: TIWLabel;IWLabel3: TIWLabel;IWLabel4: TIWLabel;IWLabel5: TIWLabel;IWLabel6: TIWLabel;IWLabel7: TIWLabel;IWLabel8: TIWLabel; // 警报8procedure IWAppFormCreate(Sender: TObject);publicend;implementation{$R *.dfm}procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin// 1. 响应式布局设置PageContext.ExtraHeader.Add('<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">');// 2.在ServerController里添加全局CSS HTMLHeaders.Add('<link rel="stylesheet" href="/css/bootstrap.min.css">');// 3. 容器设置IWBS4Region1.Css := 'container mt-3';// 4. 设置所有警报IWLabel1.RawText := True;IWLabel1.Text :='<div class="alert alert-primary mt-2" role="alert">主要警报示例</div>';IWLabel2.RawText := True;IWLabel2.Text :='<div class="alert alert-secondary mt-2" role="alert">次要警报示例</div>';IWLabel3.RawText := True;IWLabel3.Text :='<div class="alert alert-success mt-2" role="alert">成功警报示例</div>';IWLabel4.RawText := True;IWLabel4.Text :='<div class="alert alert-danger mt-2" role="alert">危险警报示例</div>';IWLabel5.RawText := True;IWLabel5.Text :='<div class="alert alert-warning mt-2" role="alert">警告警报示例</div>';IWLabel6.RawText := True;IWLabel6.Text :='<div class="alert alert-info mt-2" role="alert">信息警报示例</div>';IWLabel7.RawText := True;IWLabel7.Text :='<div class="alert alert-light mt-2" role="alert">浅色警报示例</div>';IWLabel8.RawText := True;IWLabel8.Text :='<div class="alert alert-dark mt-2" role="alert">深色警报示例</div>';
end;initializationTIWForm1.SetAsMainForm;end.

关键字:网络规划设计师考试内容有哪些_食品批发网_经典营销案例100例_赣州是哪个省

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: