zoukankan
html css js c++ java
css图片的相关操作
css图片的相关操作
1、案例源码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{margin: 0;padding: 0}
body{ 95.2%;margin: 5px auto;}
.image{border: 1px solid darkgray; auto;height: auto;float: left;text-align: center;margin: 5px;}
.image p{font-size: 12px;margin-bottom: 4px;}
.image a img{padding: 3px;opacity: 0.92}/*padding和margin都可以实现同样效果*/
.image a img:hover{opacity: 1;}
.image a:hover{background-color: coral;}
</style>
</head>
<body>
<div class="image">
<a href="#"><img src="images/f1.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f2.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f3.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f4.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f5.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f6.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f7.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f1.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f2.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f1.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f2.jpg"/></a>
<p>美景</p>
</div>
<div class="image">
<a href="#"><img src="images/f3.jpg"/></a>
<p>美景</p>
</div>
</body>
</html>
2、案例效果
查看全文
相关阅读:
webpack和webpack-dev-server安装配置
webpack和webpack-dev-server安装配置
Json和Jsonp
xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
读undo 导致db file sequential read
direct path read 研究
SpringCloud的版本
521忘记送大家礼物了,补上!
原文地址:https://www.cnblogs.com/qikeyishu/p/7392354.html
最新文章
xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!
VUE接入 腾讯验证码,极验验证码
Component(...): Nothing was returned from render
python 写excel
2019年最新最全运维技能图谱
bash: create-react-app: command not found
主流配置中心的比较 Spring Cloud Config、Apollo、Nacos
破周三,前不着村后不着店的,只好学pandas了,你该这么学,No.9
index range scan 单块读
热门文章
回表单块读
读索引 db file sequential read
ajax学习摘抄笔记
ajax学习摘抄笔记
关于安卓手机硬编码分辨率设置问题
关于安卓手机硬编码分辨率设置问题
关于安卓手机硬编码分辨率设置问题
关于安卓手机硬编码分辨率设置问题
webpack和webpack-dev-server安装配置
webpack和webpack-dev-server安装配置
Copyright © 2011-2022 走看看