> 웹 프론트엔드 > HTML 튜토리얼 > Css常用操作――――――图片_html/css_WEB-ITnose

Css常用操作――――――图片_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
풀어 주다: 2016-06-24 11:18:06
원래의
936명이 탐색했습니다.

body{    background-color: #0078b3;}.image{    border: 1px solid darkgray;    width: auto;    height: auto;    float: left;    text-align: center;    margin: 5px;}img{    margin: 5px;    opacity: 1;}.text{    font-size: 12px;    margin-bottom: 5px;}a:hover{    background-color: aqua;}
로그인 후 복사
<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>图片</title>    <link href="style.css" type="text/css" rel="stylesheet"></head><body>    <div class="image">        <a href="#" target="_self">            <img src="/static/imghw/default1.png"  data-src="2.jpg"  class="lazy"   alt="背景"    style="max-width:90%" height="200px">        </a>        <div class="text">一张背景图</div>    </div>    <div class="image">        <a href="#" target="_self">            <img src="/static/imghw/default1.png"  data-src="2.jpg"  class="lazy"   alt="背景"    style="max-width:90%" height="200px">        </a>        <div class="text">一张背景图</div>    </div>    <div class="image">        <a href="#" target="_self">            <img src="/static/imghw/default1.png"  data-src="2.jpg"  class="lazy"   alt="背景"    style="max-width:90%" height="200px">        </a>        <div class="text">一张背景图</div>    </div>    <div class="image">        <a href="#" target="_self">            <img src="/static/imghw/default1.png"  data-src="2.jpg"  class="lazy"   alt="背景"    style="max-width:90%" height="200px">        </a>        <div class="text">一张背景图</div>    </div></body></html>
로그인 후 복사


본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿