Buttons及font awesome icons结合的使用

40 篇文章 1 订阅
26 篇文章 0 订阅
1.官网
	Buttons官网:http://www.bootcss.com/p/buttons/
	font awesome icons官网:http://fortawesome.github.io/Font-Awesome/icons/
2. 预览效果


3. 示例代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="fontawesome/css/font-awesome.min.css" rel="stylesheet">
<link href="Buttons/css/buttons.css" rel="stylesheet">
<title>Insert title here</title>
</head>
<body align="center">
	<span class="button-wrap">
		<button type="submit" class="button button-circle button-flat button-flat-primary glow" style="width: 200px; height: 200px;line-height: 200px;">搜 索</button>
	</span>
	
	<div>
		<a href="#" class="button button-rounded button-flat-primary">press me</a>
		<a href="#" class="button button-pill button-flat-primary">press me</a>
		<a href="#" class="button button-flat-primary">press me</a>
		<a href="#" class="button button-circle button-flat-primary">press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button button-rounded button-flat"><i class="icon-github"></i></i> press me</a>
		<a href="#" class="button button-rounded button-flat-primary"><i class="icon-refresh"></i> press me</a>
		<a href="#" class="button button-rounded button-flat-action"><i class="icon-cloud"></i> press me</a>
		<a href="#" class="button button-rounded button-flat-highlight"><i class="icon-camera"></i> press me</a>
		<a href="#" class="button button-rounded button-flat-caution"><i class="icon-code"></i> press me</a>
		<a href="#" class="button button-rounded button-flat-royal"><i class="icon-envelope-alt"></i> press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button glow button-rounded button-flat">press me</a>
		<a href="#" class="button glow button-rounded button-flat-primary">press me</a>
		<a href="#" class="button glow button-rounded button-flat-action">press me</a>
		<a href="#" class="button glow button-rounded button-flat-highlight">press me</a>
		<a href="#" class="button glow button-rounded button-flat-caution">press me</a>
		<a href="#" class="button glow button-rounded button-flat-royal">press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button button-rounded">press me</a>
		<a href="#" class="button button-rounded button-primary">press me</a>
		<a href="#" class="button button-rounded button-action">press me</a>
		<a href="#" class="button button-rounded button-highlight">press me</a>
		<a href="#" class="button button-rounded button-caution">press me</a>
		<a href="#" class="button button-rounded button-royal">press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button button-pill">press me</a>
		<a href="#" class="button button-pill button-primary">press me</a>
		<a href="#" class="button button-pill button-action">press me</a>
		<a href="#" class="button button-pill button-highlight">press me</a>
		<a href="#" class="button button-pill button-caution">press me</a>
		<a href="#" class="button button-pill button-royal">press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button">press me</a>
		<a href="#" class="button button-primary">press me</a>
		<a href="#" class="button button-action">press me</a>
		<a href="#" class="button button-highlight">press me</a>
		<a href="#" class="button button-caution">press me</a>
		<a href="#" class="button button-royal">press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button button-circle">press me</a>
		<a href="#" class="button button-circle button-primary">press me</a>
		<a href="#" class="button button-circle button-action">press me</a>
		<a href="#" class="button button-circle button-highlight">press me</a>
		<a href="#" class="button button-circle button-caution">press me</a>
		<a href="#" class="button button-circle button-royal">press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button button-block button-rounded button-primary button-large">press me</a>
	</div>
	<br>
	<div>
		<a href="#" class="button button-rounded button-flat-primary button-large">press me</a>
		<a href="#" class="button button-rounded button-flat-primary">press me</a>
		<a href="#" class="button button-rounded button-flat-primary button-small">press me</a>
		<a href="#" class="button button-rounded button-flat-primary button-tiny">press me</a>
	</div>
	<br>
	<div>
		<span class="button-wrap"><a href="#" class="button button-circle">press me</a></span>
		<span class="button-wrap"><a href="#" class="button button-circle button-primary">press me</a></span>
		<span class="button-wrap"><a href="#" class="button button-pill ">press me</a></span>
		<span class="button-wrap"><a href="#" class="button button-pill button-primary">press me</a></span>
	</div>
	<br>
	<div>
		<input type="submit" value="press me" class="button button-pill button-primary"/>
		<button class="button button-pill button-primary">press me</button>

		<!-- DISABLED BUTTONS -->
		<input  disabled type="submit"  value="press me" class="button button-pill button-primary"/>
		<button disabled class="button  button-pill button-primary">press me</button>
		<a href="#" class="button disabled button-pill button-primary">press me</a>
	</div>
	<br>
	<br>
</body>
</html>
 

                
QMessageBox是一个提供了各种消息框功能的类,在C++中通过Qt框架来使用。它可以用于显示各种提示信息、警告、错误、询问等。 QMessageBox提供了几种常用的消息框类型,包括: - QMessageBox::NoIcon:无图标 - QMessageBox::Information:信息图标 - QMessageBox::Question:问号图标 - QMessageBox::Warning:警告图标 - QMessageBox::Critical:严重错误图标 使用QMessageBox时,一般可以通过静态成员函数来创建和显示消息框,常用的方法包括: 1. QMessageBox::about(QWidget *parent, const QString &title, const QString &text):显示一个关于对话框,只有一个确定按钮。 2. QMessageBox::aboutQt(QWidget *parent, const QString &title):显示一个关于Qt对话框,只有一个确定按钮。 3. QMessageBox::information(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton):显示一个信息对话框,可以设置按钮样式。 4. QMessageBox::question(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons = Yes|No, StandardButton defaultButton = NoButton):显示一个询问对话框,可以设置按钮样式。 5. QMessageBox::warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton):显示一个警告对话框,可以设置按钮样式。 6. QMessageBox::critical(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons = Ok, StandardButton defaultButton = NoButton):显示一个严重错误对话框,可以设置按钮样式。 除了上述静态成员函数之外,QMessageBox还提供了一些其他的方法,用于设置对话框的标题、文本内容、按钮样式等。 以上就是QMessageBox的一些常用小窗及使用方法,希望能对你有所帮助!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值