博客列表 >2018/8/10

2018/8/10

小明哥哥的博客
小明哥哥的博客原创
2018年08月12日 15:59:18737浏览

<!DOCTYPE html>
<html lang="en">
<head><!-- 定义网页头部 -->
<meta charset="UTF-8"><!-- 指定网页文字编码 -->
<title>php中文网---视频教程</title><!-- 网页的标题 -->
<link rel="stylesheet" type="text/css" href="static/link.css"><!-- 从外部载入css样式 重复多次利用-->
<link rel="shortcut icon" type = "image/x-icon" href="images/ml.png"><!-- 载入图标 -->
<style type="text/css">/*内部样式.这种方式只针对当前页面*/
body{background: pink;}/*标记选择器*/
#box{width: 100px;height: 100px;background: green;}/*id选择器*/
.main{width: 100px;height: 100px;background: blue;}/*class选择器 类*/
a{color: red;}
a[href="http://www.php.cn/"]{color: blue;}
#box a{color: red;}
.main a{color:#0000;}
</style>
</head>
<body >
<a href="https://www.baidu.com/">百度</a>
<a href="http://www.php.cn/">php中文网</a>
<a href="myhttp.html">本地网页</a>
<div id = "box">
<a href="#">淘宝</a>
</div>
<div class = "main">
<a href="#">京东</a>
</div>
</body>
</html>

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