博客列表 >2018年8月10日作业

2018年8月10日作业

戴戴和乐乐的博客
戴戴和乐乐的博客原创
2018年08月13日 15:32:32463浏览

今天是第一天在PHP学习!!

实例

<!doctype html><!--xhtml 声明--><!--ctrl+/-->
<html>
<head><!--定义网页头部-->
<title>php中文网-视频教程</title>
<meta charset = "utf-8"><!-- 字符集编码 -->
<!-- link:定义文档与外部资源的关系 链接外部文件 -->
<link rel = "stylesheet" type = "text/css"  href = "static/style.css">
<!--外部样式:为了共享-->
<link rel = "short icon" type = "image/x-icon"  href = "images/footlogo.png">
<!-- 在title内部放入图片 -->
<style type = "text/css">/*内部样式:只针对当前页面*/
body{}/*标记选择器*/
#box{width:100px;height:100px;background:pink}/*ID选择器*/
.main{width:100px;height:100px;background:green}/*class选择器*/
a{color:red}
a[href = "http://www.php.cn/"]{color:blue;}
a[href = "demo2.html"]{color:pink;}
div a{color:#000;}
#box a{}
</style>
</head>
<body><!--内联样式 style = "background:biue"-->
<img src = "">
<a href = "http://www.baidu.com/">百度</a> 
<a href = "http://www.php.cn/">php中文网</a>
<a href = "demo2.html" >demo2</a><a href ="#">#</a>
<div id = "box">
<a href="">php</a>
</div>
<div class="main"></div>
<div></div>
<div></div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议