css样式的优先级
来源:互联网 发布:java eclipse 编辑:程序博客网 时间:2024/06/05 11:48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--<link rel="stylesheet"href="../css/first.css">-->
<style>
#price{
color:greenyellow;
font-size: 50px;
}
#price1{
color:greenyellow;
font-size: 50px;
text-decoration: underline; <!-- 只覆盖相同元素 -->
}
</style>
<link rel="stylesheet"href="../css/first.css">
<title>css样式的优先级</title>
</head>
<body>
<!--行内样式的优先级比内部样式高-->
<!--内部样式的优先级比外部样式高-->
<!--以上效果的实现要符合“就见原则”-->
<p>
电脑 <span id="price"style="color: red;font-size: 40px">1</span>元起
</p>
<p>
电脑 <span id="price1">1</span>元起
</p>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--<link rel="stylesheet"href="../css/first.css">-->
<style>
#price{
color:greenyellow;
font-size: 50px;
}
#price1{
color:greenyellow;
font-size: 50px;
text-decoration: underline; <!-- 只覆盖相同元素 -->
}
</style>
<link rel="stylesheet"href="../css/first.css">
<title>css样式的优先级</title>
</head>
<body>
<!--行内样式的优先级比内部样式高-->
<!--内部样式的优先级比外部样式高-->
<!--以上效果的实现要符合“就见原则”-->
<p>
电脑 <span id="price"style="color: red;font-size: 40px">1</span>元起
</p>
<p>
电脑 <span id="price1">1</span>元起
</p>
</body>
</html>
0 0
- CSS样式的优先级...
- CSS样式的优先级
- CSS样式的优先级
- CSS样式的优先级
- css样式的优先级
- css样式的优先级
- css样式的优先级
- CSS 样式的优先级
- css样式的优先级
- CSS样式的优先级
- css样式的优先级
- CSS样式的优先级
- CSS样式的优先级
- CSS样式表的优先级
- CSS样式的优先级问题
- CSS样式的优先级问题
- CSS中样式的优先级
- css的样式选择优先级
- linux上的mysql从5.5升级到5.6
- 栈的压入、弹出序列
- 【Summary】——>Web组·Week3
- CSDN-markdown编辑器使用教程存档
- Spring AOP(1)- 前置增强 实现
- css样式的优先级
- 顺序栈
- ZOJ 3959 Problem Preparation
- 选择器
- 【笔记】formvalidtor常见问题总结
- 详解c++指针的指针和指针的引用
- R语言-文本挖掘 主题模型 文本分类
- ZOJ 3958 Cooking Competition
- 字体