python web框架企业实战详解(第六期)\第三课时-css&bootstrap

raw css:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
	
	<style type="text/css">
	p.ex1
	{
	font:italic arial,sans-serif;
	}
	
	p.ex2
	{
	font:italic bold 12px/30px arial,sans-serif;
	}
	</style>
</head>
<body>
<h1>this is a raw css page </h1>
<p>static files must be put in <font color="red" ><b> static</b></font> directory in webpy !</p>

<p class="ex1"> SEE HERE css p.ext1 test </p>
<p class="ex2"> SEE HERE css p.ex2 test </p>

</body>
</html>



bootstrap css:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>

<!-- bootstrap下载地址:http://getbootstrap.com/getting-started/ -->
<link rel="stylesheet" href="./bootstrap-3.3.6-dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="./bootstrap-3.3.6-dist/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="./bootstrap-3.3.6-dist/js/bootstrap.min.js"/>

</head>
<body>
<h1>this is a bootstrap css page </h1>
<p>static files must be put in <font color="red" ><b> static</b></font> directory in webpy !</p>

<!-- bootstrap样式参考: http://v3.bootcss.com/css/#buttons-options -->

<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<button type="button" class="btn btn-primary">(首选项)Primary</button>
<!-- Indicates a successful or positive action -->
<button type="button" class="btn btn-success">(成功)Success</button>

</body>
</html>


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值