3 4 5 </title&"/><meta property="og:local" content="ja"> <meta property="og:title" content="静的カルーセル-htmlチュートリアル-php.cn"> <meta property="og:description" content="1 <!DOCTYPE html> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 5 <title></title&"> <meta property="og:url" content="https://m.php.cn/ja/faq/374194.html"> <meta property="og:image" content="https://m.php.cn/static/images/logo.png"> <meta property="og:site_name" content="php.cn"> <meta property="og:type" content="website"> <link rel="canonical" href="https://m.php.cn/ja/faq/374194.html"/> <link rel="alternate" hrefLang="zh-cn" href="https://m.php.cn/zh/faq/374194.html" /> <link rel="alternate" hrefLang="en" href="https://m.php.cn/faq/374194.html" /> <link rel="alternate" hrefLang="zh-tw" href="https://m.php.cn/zh-tw/faq/374194.html" /> <link rel="alternate" hrefLang="ja" href="https://m.php.cn/ja/faq/374194.html" /> <link rel="alternate" hrefLang="ko" href="https://m.php.cn/ko/faq/374194.html" /> <link rel="alternate" hrefLang="ms" href="https://m.php.cn/ms/faq/374194.html" /> <link rel="alternate" hrefLang="fr" href="https://m.php.cn/fr/faq/374194.html" /> <link rel="alternate" hrefLang="de" href="https://m.php.cn/de/faq/374194.html" /> <meta charset="utf-8" /><meta name=viewport content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"><meta name="applicable-device" content="mobile" /><link rel="stylesheet" href="/static/css/style.css?4.5.31"><link href="/static/front/mobcss/newphpcommon.css?1.1" type="text/css" rel="stylesheet"/><link href="/static/front/mobcss/swiper.min.css" type="text/css" rel="stylesheet"/><link href="/static/front/mobcss/newphp.css?1.2" type="text/css" rel="stylesheet"/><link href="/static/css/global.css" type="text/css" rel="stylesheet"/><link href="/static/layui/css/layui.css" type="text/css" rel="stylesheet"/><link href="/static/mobcss/mobindex3.css" type="text/css" rel="stylesheet"/><script src="/static/front/mobjs/jquery-1.6.1.min.js"></script><script src="/static/front/mobjs/swiper.min.js"></script><script src="/static/front/mobjs/newphpcommon.js"></script><script> var canshu = { SeeMore:'続きを見る', FoldUp:'畳む', Choice:'言語', wait:'読み込み中です、お待ちください~', LoginFirst:"まずログインしてください", needKeyword:'キーワード検索を入力してください', emailPhoneError:'正しい電話番号またはメールアドレスを入力してください', missPwd:'パスワードを入力してください', emailError:'正しいメールアドレスを入力してください', VerCode:"確認コードを入力してください", getCode:'送信', pwdError:'パスワードの形式が正しくありません', TwoPassNotMatch:'2 つのパスワードが一致しません', Bindemail:'電子メールをバインドする', resetpassword:'パスワードを再設定する', ConfirmPass:'パスワードを認証する', pwdCheck:'6~18 文字または数字を入力してください', Editinfor: '個人情報の編集', trimContent:'内容を入力してください', titleCheck:'タイトルは少なくとも 5 単語の長さである必要があります', choiceLang:'言語分類を選択してください', Secondreply:'返事', NetWorkError:'ネットワーク エラー。後でもう一度お試しください。', all_lang_string:'zh|en|zh-tw|ja|ko|ms|fr|de' }; </script><!-- Google Tag Manager --><script> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl; f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-WWVXRJPW'); </script><!-- End Google Tag Manager --><!-- Google tag (gtag.js) --><script async src="https://www.googletagmanager.com/gtag/js?id=G-H42EVCYBJC"></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-H42EVCYBJC'); </script><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5902227090019525" crossorigin="anonymous"></script><!--<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6267705206177514" crossorigin="anonymous"></script>--><meta property="article:author" content="PHP中文网" /><meta property="article:published_first" content=",https://www.php.cn/faq/374194.html" /><link rel="stylesheet" href="/static/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css?1"><link rel="stylesheet" href="/static/ueditor/third-party/SyntaxHighlighter/shCoreDefault1.css"><link href="/static/mobcss/newphp.css" type="text/css" rel="stylesheet"/><script src="/static/ueditor/third-party/SyntaxHighlighter/shCore.js"></script><script> var xnb_name = 'Virtual currency'; </script><script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","headline":"静的カルーセル","description":"1 <!DOCTYPE html> 2 <html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"> 3 <head> 4 <meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\"\/> 5 <title><\/title&","image":["img\/1_1.jpg","img\/1_2.jpg","img\/1_3.png","img\/1_4.jpg","img\/1_5.jpg"],"datePublished":"2017-07-14T18:10:03+8:00","author":{"url":"http:\/\/m.php.cn\/ja\/member\/1.html","name":"PHP中文网"},"mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/m.php.cn\/ja\/faq\/374194.html"},"url":"https:\/\/m.php.cn\/ja\/faq\/374194.html","articleBody":"<div class=\"cnblogs_code\">\n<pre><span style=\"color: #008080\"> 1<\/span> <span style=\"color: #800000\"><!DOCTYPE html>\n<\/span><span style=\"color: #008080\"> 2<\/span> <span style=\"color: #800000\"><html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<\/span><span style=\"color: #008080\"> 3<\/span> <span style=\"color: #800000\"><head>\n<\/span><span style=\"color: #008080\"> 4<\/span> <span style=\"color: #800000\"><meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\"\/>\n<\/span><span style=\"color: #008080\"> 5<\/span> <span style=\"color: #800000\"><title><\/title>\n<\/span><span style=\"color: #008080\"> 6<\/span> <span style=\"color: #800000\"><link href=\"css\/demo.css\" rel=\"stylesheet\" \/>\n<\/span><span style=\"color: #008080\"> 7<\/span> <span style=\"color: #800000\"><\/head>\n<\/span><span style=\"color: #008080\"> 8<\/span> <span style=\"color: #800000\"><body>\n<\/span><span style=\"color: #008080\"> 9<\/span> <span style=\"color: #800000\"><div id=\"dlunbo\">\n<\/span><span style=\"color: #008080\">10<\/span> <span style=\"color: #800000\"><div id=\"igs\">\n<\/span><span style=\"color: #008080\">11<\/span> <span style=\"color: #800000\"><div class=\"ig\"><img src=\"img\/1_1.jpg\" \/><\/div>\n<\/span><span style=\"color: #008080\">12<\/span> <span style=\"color: #800000\"><div class=\"ig\"><img src=\"img\/1_2.jpg\" \/><\/div>\n<\/span><span style=\"color: #008080\">13<\/span> <span style=\"color: #800000\"><div class=\"ig\"><img src=\"img\/1_3.png\" \/><\/div>\n<\/span><span style=\"color: #008080\">14<\/span> <span style=\"color: #800000\"><div class=\"ig\"><img src=\"img\/1_4.jpg\" \/><\/div>\n<\/span><span style=\"color: #008080\">15<\/span> <span style=\"color: #800000\"><div class=\"ig\"><img src=\"img\/1_5.jpg\" \/><\/div>\n<\/span><span style=\"color: #008080\">16<\/span> <span style=\"color: #800000\"><\/div>\n<\/span><span style=\"color: #008080\">17<\/span> <span style=\"color: #800000\"><ul id=\"tabs\">\n<\/span><span style=\"color: #008080\">18<\/span> <span style=\"color: #800000\"><li class=\"tab\"><\/li>\n<\/span><span style=\"color: #008080\">19<\/span> <span style=\"color: #800000\"><li class=\"tab\"><\/li>\n<\/span><span style=\"color: #008080\">20<\/span> <span style=\"color: #800000\"><li class=\"tab\"><\/li>\n<\/span><span style=\"color: #008080\">21<\/span> <span style=\"color: #800000\"><li class=\"tab\"><\/li>\n<\/span><span style=\"color: #008080\">22<\/span> <span style=\"color: #800000\"><li class=\"tab\"><\/li>\n<\/span><span style=\"color: #008080\">23<\/span> <span style=\"color: #800000\"><\/ul>\n<\/span><span style=\"color: #008080\">24<\/span> <span style=\"color: #800000\"><div class=\"btn btn1\" ><<\/div>\n<\/span><span style=\"color: #008080\">25<\/span> <span style=\"color: #800000\"><div class=\"btn btn2\">><\/div>\n<\/span><span style=\"color: #008080\">26<\/span> <span style=\"color: #800000\"><\/div>\n<\/span><span style=\"color: #008080\">27<\/span> <span style=\"color: #800000\"><\/body>\n<\/span><span style=\"color: #008080\">28<\/span> <span style=\"color: #800000\"><\/html><br><\/span><\/pre>\n<\/div>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #008080\"> 1<\/span> <span style=\"color: #800000\">*<\/span>{\n<span style=\"color: #008080\"> 2<\/span> <span style=\"color: #ff0000\">margin<\/span>:<span style=\"color: #0000ff\">0px<\/span>;\n<span style=\"color: #008080\"> 3<\/span> <span style=\"color: #ff0000\">padding<\/span>:<span style=\"color: #0000ff\">0px<\/span>;\n<span style=\"color: #008080\"> 4<\/span> <span style=\"color: #ff0000\">list-style-type<\/span>:<span style=\"color: #0000ff\">none<\/span>;\n<span style=\"color: #008080\"> 5<\/span> }\n<span style=\"color: #008080\"> 6<\/span> <span style=\"color: #800000\">#dlunbo<\/span>{\n<span style=\"color: #008080\"> 7<\/span> <span style=\"color: #ff0000\">width<\/span>:<span style=\"color: #0000ff\">500px<\/span>;\n<span style=\"color: #008080\"> 8<\/span> <span style=\"color: #ff0000\">height<\/span>:<span style=\"color: #0000ff\">330px<\/span>;\n<span style=\"color: #008080\"> 9<\/span> <span style=\"color: #ff0000\">position<\/span>:<span style=\"color: #0000ff\">absolute<\/span>;\n<span style=\"color: #008080\">10<\/span> <span style=\"color: #ff0000\">top<\/span>:<span style=\"color: #0000ff\">50%<\/span>;\n<span style=\"color: #008080\">11<\/span> <span style=\"color: #ff0000\">margin-top<\/span>:<span style=\"color: #0000ff\">-166px<\/span>;\n<span style=\"color: #008080\">12<\/span> <span style=\"color: #ff0000\">left<\/span>:<span style=\"color: #0000ff\">50%<\/span>;\n<span style=\"color: #008080\">13<\/span> <span style=\"color: #ff0000\">margin-left<\/span>:<span style=\"color: #0000ff\">-250px<\/span>;\n<span style=\"color: #008080\">14<\/span> }\n<span style=\"color: #008080\">15<\/span> <span style=\"color: #800000\">.ig<\/span>{\n<span style=\"color: #008080\">16<\/span> <span style=\"color: #ff0000\">position<\/span>:<span style=\"color: #0000ff\">absolute<\/span>;\n<span style=\"color: #008080\">17<\/span> }\n<span style=\"color: #008080\">18<\/span> <span style=\"color: #800000\">img<\/span>{\n<span style=\"color: #008080\">19<\/span> <span style=\"color: #ff0000\">width<\/span>:<span style=\"color: #0000ff\">500px<\/span>;\n<span style=\"color: #008080\">20<\/span> <span style=\"color: #ff0000\">height<\/span>:<span style=\"color: #0000ff\">330px<\/span>;\n<span style=\"color: #008080\">21<\/span> }\n<span style=\"color: #008080\">22<\/span> <span style=\"color: #800000\">#tabs<\/span>{\n<span style=\"color: #008080\">23<\/span> <span style=\"color: #ff0000\">position<\/span>:<span style=\"color: #0000ff\">absolute<\/span>;\n<span style=\"color: #008080\">24<\/span> <span style=\"color: #ff0000\">top<\/span>:<span style=\"color: #0000ff\">300px<\/span>;\n<span style=\"color: #008080\">25<\/span> <span style=\"color: #ff0000\">left<\/span>:<span style=\"color: #0000ff\">200px<\/span>;\n<span style=\"color: #008080\">26<\/span> }\n<span style=\"color: #008080\">27<\/span> <span style=\"color: #800000\">.tab<\/span>{\n<span style=\"color: #008080\">28<\/span> <span style=\"color: #ff0000\">width<\/span>:<span style=\"color: #0000ff\">20px<\/span>;\n<span style=\"color: #008080\">29<\/span> <span style=\"color: #ff0000\">height<\/span>:<span style=\"color: #0000ff\">20px<\/span>;\n<span style=\"color: #008080\">30<\/span> <span style=\"color: #ff0000\">border<\/span>:<span style=\"color: #0000ff\">solid 1px #ffffff<\/span>;\n<span style=\"color: #008080\">31<\/span> <span style=\"color: #ff0000\">float<\/span>:<span style=\"color: #0000ff\">left<\/span>;\n<span style=\"color: #008080\">32<\/span> <span style=\"color: #ff0000\">margin-left<\/span>:<span style=\"color: #0000ff\">5px<\/span>;\n<span style=\"color: #008080\">33<\/span> <span style=\"color: #ff0000\">border-radius<\/span>:<span style=\"color: #0000ff\">100%<\/span>;\n<span style=\"color: #008080\">34<\/span> <span style=\"color: #ff0000\">cursor<\/span>:<span style=\"color: #0000ff\">pointer<\/span>;\n<span style=\"color: #008080\">35<\/span> }\n<span style=\"color: #008080\">36<\/span> <span style=\"color: #800000\">.btn<\/span>{\n<span style=\"color: #008080\">37<\/span> <span style=\"color: #ff0000\">width<\/span>:<span style=\"color: #0000ff\">30px<\/span>;\n<span style=\"color: #008080\">38<\/span> <span style=\"color: #ff0000\">height<\/span>:<span style=\"color: #0000ff\">50px<\/span>;\n<span style=\"color: #008080\">39<\/span> <span style=\"color: #ff0000\">position<\/span>:<span style=\"color: #0000ff\">absolute<\/span>;\n<span style=\"color: #008080\">40<\/span> <span style=\"color: #ff0000\">background<\/span>:<span style=\"color: #0000ff\">rgba(0,0,0,0.5)<\/span>;\n<span style=\"color: #008080\">41<\/span> <span style=\"color: #ff0000\">color<\/span>:<span style=\"color: #0000ff\">#fff<\/span>;\n<span style=\"color: #008080\">42<\/span> <span style=\"color: #ff0000\">text-align<\/span>:<span style=\"color: #0000ff\">center<\/span>;\n<span style=\"color: #008080\">43<\/span> <span style=\"color: #ff0000\">line-height<\/span>:<span style=\"color: #0000ff\">50px<\/span>;\n<span style=\"color: #008080\">44<\/span> <span style=\"color: #ff0000\">font-size<\/span>:<span style=\"color: #0000ff\">30px<\/span>;\n<span style=\"color: #008080\">45<\/span> <span style=\"color: #ff0000\">top<\/span>:<span style=\"color: #0000ff\">50%<\/span>;\n<span style=\"color: #008080\">46<\/span> <span style=\"color: #ff0000\">margin-top<\/span>:<span style=\"color: #0000ff\">-25px<\/span>;\n<span style=\"color: #008080\">47<\/span> <span style=\"color: #ff0000\">cursor<\/span>:<span style=\"color: #0000ff\">pointer<\/span>;\n<span style=\"color: #008080\">48<\/span> }\n<span style=\"color: #008080\">49<\/span> <span style=\"color: #800000\">.btn1<\/span>{\n<span style=\"color: #008080\">50<\/span> <span style=\"color: #ff0000\">left<\/span>:<span style=\"color: #0000ff\">0px<\/span>;\n<span style=\"color: #008080\">51<\/span> }\n<span style=\"color: #008080\">52<\/span> <span style=\"color: #800000\">.btn2<\/span>{\n<span style=\"color: #008080\">53<\/span> <span style=\"color: #ff0000\">right<\/span>:<span style=\"color: #0000ff\">0px<\/span>;\n<span style=\"color: #008080\">54<\/span> }<\/pre>\n<\/div>\n<p> <\/p>"}</script></head><body><div class="bodyBg"><!--头部--><div class="nphpHead"><div class="nphpTop"><div class="nphpTopIn"><div class="nphpLogo"><a href="http://m.php.cn/ja/" title="PHP中国語ウェブサイト"></a></div><div class="nphpSubmit"><!-- <a href="http://m.php.cn/ja/search" class="bg1"></a> --><div class="langadivs" ><a href="javascript:;" class="bg4 bglanguage"></a><div class="langadiv" ><a onclick="javascript:setlang('zh-cn');" class="language course-right-orders chooselan " href="javascript:;"><span>简体中文</span><span>(ZH-CN)</span></a><a onclick="javascript:setlang('en');" class="language course-right-orders chooselan " href="javascript:;"><span>English</span><span>(EN)</span></a><a onclick="javascript:setlang('zh-tw');" class="language course-right-orders chooselan " href="javascript:;"><span>繁体中文</span><span>(ZH-TW)</span></a><a onclick="javascript:;" class="language course-right-orders chooselan chooselanguage" href="javascript:;"><span>日本語</span><span>(JA)</span></a><a onclick="javascript:setlang('ko');" class="language course-right-orders chooselan " href="javascript:;"><span>한국어</span><span>(KO)</span></a><a onclick="javascript:setlang('ms');" class="language course-right-orders chooselan " href="javascript:;"><span>Melayu</span><span>(MS)</span></a><a onclick="javascript:setlang('fr');" class="language course-right-orders chooselan " href="javascript:;"><span>Français</span><span>(FR)</span></a><a onclick="javascript:setlang('de');" class="language course-right-orders chooselan " href="javascript:;"><span>Deutsch</span><span>(DE)</span></a></div></div><a href="http://m.php.cn/ja/login" class="bg3"></a></div></div></div><div class="nphpNav"><div class="nphpNavIn"><div class="swiper-container nphpNavSwiper"><div class="swiper-wrapper"><div class="swiper-slide"><a href="http://m.php.cn/ja/" >ホームページ</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/article.html" class="hover">記事</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/wenda.html" >に質問</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/course.html" >コース</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/faq/zt" >特集</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/xiazai" >ダウンロード</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/game" >ゲーム</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/dic.html" >辞書</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/update/article_0_1.html" >最近の更新</a></div><div class="clear"></div></div></div><script> var swiper = new Swiper('.nphpNavSwiper', { slidesPerView : 'auto' }); </script></div></div></div><!--头部 end--><div class="bodyMain"><!--所在位置--><div class="nphpSize"><div class="nphpSizeIn"><b></b><p><a href="http://m.php.cn/ja/" title="ホームページ" class="bBlack">ホームページ</a>  >  <a href="http://m.php.cn/ja/article.html" title="記事" class="bBlack">記事</a>  >  <a href="http://m.php.cn/ja/web-designer.html" class="cBlack">ウェブフロントエンド</a>  >  静的カルーセル</p><!-- <p><a href="http://m.php.cn/ja/article.html" class="cBlack">技術記事</a>  >  <a href="http://m.php.cn/ja/web-designer.html" class="cBlack">ウェブフロントエンド</a> > <a href="http://m.php.cn/ja/div-tutorial.html" class="cBlack">htmlチュートリアル</a> > 静的カルーセル</p> --><div class="clear"></div></div></div><div class="nphpQianBox"><div class="nphpQianTitle"><h1>静的カルーセル</h1><div class="nphpQianTitleIn"><span><img data-src="https://img.php.cn/upload/avatar/000/000/001/6251028808086368.png" alt="PHP中文网" class="lazyload" src="/static/front/mobimages/moren/moren.png" /></span><dl><dt><em>PHP中文网</em><i class='bg1'>オリジナル</i><div class="clear"></div></dt><dd><em>2017-07-14 18:10:03</em><i>2042ブラウズ</i><div class="clear"></div></dd></dl><div class="clear"></div></div></div><div class="nphpQianCont wenda-list"><div class="cnblogs_code"> <pre class="brush:php;toolbar:false"><span style="color: #008080"> 1</span> <span style="color: #800000"><!DOCTYPE html> </span><span style="color: #008080"> 2</span> <span style="color: #800000"><html xmlns="http://www.w3.org/1999/xhtml"> </span><span style="color: #008080"> 3</span> <span style="color: #800000"><head> </span><span style="color: #008080"> 4</span> <span style="color: #800000"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </span><span style="color: #008080"> 5</span> <span style="color: #800000"><title></title> </span><span style="color: #008080"> 6</span> <span style="color: #800000"><link href="css/demo.css" rel="stylesheet" /> </span><span style="color: #008080"> 7</span> <span style="color: #800000"></head> </span><span style="color: #008080"> 8</span> <span style="color: #800000"><body> </span><span style="color: #008080"> 9</span> <span style="color: #800000"><div id="dlunbo"> </span><span style="color: #008080">10</span> <span style="color: #800000"><div id="igs"> </span><span style="color: #008080">11</span> <span style="color: #800000"><div class="ig"><img src="img/1_1.jpg" /></div> </span><span style="color: #008080">12</span> <span style="color: #800000"><div class="ig"><img src="img/1_2.jpg" /></div> </span><span style="color: #008080">13</span> <span style="color: #800000"><div class="ig"><img src="img/1_3.png" /></div> </span><span style="color: #008080">14</span> <span style="color: #800000"><div class="ig"><img src="img/1_4.jpg" /></div> </span><span style="color: #008080">15</span> <span style="color: #800000"><div class="ig"><img src="img/1_5.jpg" /></div> </span><span style="color: #008080">16</span> <span style="color: #800000"></div> </span><span style="color: #008080">17</span> <span style="color: #800000"><ul id="tabs"> </span><span style="color: #008080">18</span> <span style="color: #800000"><li class="tab"></li> </span><span style="color: #008080">19</span> <span style="color: #800000"><li class="tab"></li> </span><span style="color: #008080">20</span> <span style="color: #800000"><li class="tab"></li> </span><span style="color: #008080">21</span> <span style="color: #800000"><li class="tab"></li> </span><span style="color: #008080">22</span> <span style="color: #800000"><li class="tab"></li> </span><span style="color: #008080">23</span> <span style="color: #800000"></ul> </span><span style="color: #008080">24</span> <span style="color: #800000"><div class="btn btn1" >&lt;</div> </span><span style="color: #008080">25</span> <span style="color: #800000"><div class="btn btn2">&gt;</div> </span><span style="color: #008080">26</span> <span style="color: #800000"></div> </span><span style="color: #008080">27</span> <span style="color: #800000"></body> </span><span style="color: #008080">28</span> <span style="color: #800000"></html><br></span></pre> </div> <div class="cnblogs_code"> <pre class="brush:php;toolbar:false"><span style="color: #008080"> 1</span> <span style="color: #800000">*</span>{ <span style="color: #008080"> 2</span> <span style="color: #ff0000">margin</span>:<span style="color: #0000ff">0px</span>; <span style="color: #008080"> 3</span> <span style="color: #ff0000">padding</span>:<span style="color: #0000ff">0px</span>; <span style="color: #008080"> 4</span> <span style="color: #ff0000">list-style-type</span>:<span style="color: #0000ff">none</span>; <span style="color: #008080"> 5</span> } <span style="color: #008080"> 6</span> <span style="color: #800000">#dlunbo</span>{ <span style="color: #008080"> 7</span> <span style="color: #ff0000">width</span>:<span style="color: #0000ff">500px</span>; <span style="color: #008080"> 8</span> <span style="color: #ff0000">height</span>:<span style="color: #0000ff">330px</span>; <span style="color: #008080"> 9</span> <span style="color: #ff0000">position</span>:<span style="color: #0000ff">absolute</span>; <span style="color: #008080">10</span> <span style="color: #ff0000">top</span>:<span style="color: #0000ff">50%</span>; <span style="color: #008080">11</span> <span style="color: #ff0000">margin-top</span>:<span style="color: #0000ff">-166px</span>; <span style="color: #008080">12</span> <span style="color: #ff0000">left</span>:<span style="color: #0000ff">50%</span>; <span style="color: #008080">13</span> <span style="color: #ff0000">margin-left</span>:<span style="color: #0000ff">-250px</span>; <span style="color: #008080">14</span> } <span style="color: #008080">15</span> <span style="color: #800000">.ig</span>{ <span style="color: #008080">16</span> <span style="color: #ff0000">position</span>:<span style="color: #0000ff">absolute</span>; <span style="color: #008080">17</span> } <span style="color: #008080">18</span> <span style="color: #800000">img</span>{ <span style="color: #008080">19</span> <span style="color: #ff0000">width</span>:<span style="color: #0000ff">500px</span>; <span style="color: #008080">20</span> <span style="color: #ff0000">height</span>:<span style="color: #0000ff">330px</span>; <span style="color: #008080">21</span> } <span style="color: #008080">22</span> <span style="color: #800000">#tabs</span>{ <span style="color: #008080">23</span> <span style="color: #ff0000">position</span>:<span style="color: #0000ff">absolute</span>; <span style="color: #008080">24</span> <span style="color: #ff0000">top</span>:<span style="color: #0000ff">300px</span>; <span style="color: #008080">25</span> <span style="color: #ff0000">left</span>:<span style="color: #0000ff">200px</span>; <span style="color: #008080">26</span> } <span style="color: #008080">27</span> <span style="color: #800000">.tab</span>{ <span style="color: #008080">28</span> <span style="color: #ff0000">width</span>:<span style="color: #0000ff">20px</span>; <span style="color: #008080">29</span> <span style="color: #ff0000">height</span>:<span style="color: #0000ff">20px</span>; <span style="color: #008080">30</span> <span style="color: #ff0000">border</span>:<span style="color: #0000ff">solid 1px #ffffff</span>; <span style="color: #008080">31</span> <span style="color: #ff0000">float</span>:<span style="color: #0000ff">left</span>; <span style="color: #008080">32</span> <span style="color: #ff0000">margin-left</span>:<span style="color: #0000ff">5px</span>; <span style="color: #008080">33</span> <span style="color: #ff0000">border-radius</span>:<span style="color: #0000ff">100%</span>; <span style="color: #008080">34</span> <span style="color: #ff0000">cursor</span>:<span style="color: #0000ff">pointer</span>; <span style="color: #008080">35</span> } <span style="color: #008080">36</span> <span style="color: #800000">.btn</span>{ <span style="color: #008080">37</span> <span style="color: #ff0000">width</span>:<span style="color: #0000ff">30px</span>; <span style="color: #008080">38</span> <span style="color: #ff0000">height</span>:<span style="color: #0000ff">50px</span>; <span style="color: #008080">39</span> <span style="color: #ff0000">position</span>:<span style="color: #0000ff">absolute</span>; <span style="color: #008080">40</span> <span style="color: #ff0000">background</span>:<span style="color: #0000ff">rgba(0,0,0,0.5)</span>; <span style="color: #008080">41</span> <span style="color: #ff0000">color</span>:<span style="color: #0000ff">#fff</span>; <span style="color: #008080">42</span> <span style="color: #ff0000">text-align</span>:<span style="color: #0000ff">center</span>; <span style="color: #008080">43</span> <span style="color: #ff0000">line-height</span>:<span style="color: #0000ff">50px</span>; <span style="color: #008080">44</span> <span style="color: #ff0000">font-size</span>:<span style="color: #0000ff">30px</span>; <span style="color: #008080">45</span> <span style="color: #ff0000">top</span>:<span style="color: #0000ff">50%</span>; <span style="color: #008080">46</span> <span style="color: #ff0000">margin-top</span>:<span style="color: #0000ff">-25px</span>; <span style="color: #008080">47</span> <span style="color: #ff0000">cursor</span>:<span style="color: #0000ff">pointer</span>; <span style="color: #008080">48</span> } <span style="color: #008080">49</span> <span style="color: #800000">.btn1</span>{ <span style="color: #008080">50</span> <span style="color: #ff0000">left</span>:<span style="color: #0000ff">0px</span>; <span style="color: #008080">51</span> } <span style="color: #008080">52</span> <span style="color: #800000">.btn2</span>{ <span style="color: #008080">53</span> <span style="color: #ff0000">right</span>:<span style="color: #0000ff">0px</span>; <span style="color: #008080">54</span> }</pre> </div> <p> </p><p>以上が静的カルーセルの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。</p></div><div class="nphpQianMsg"><div class="clear"></div></div><div class="nphpQianSheng"><span>声明:</span><div>この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。</div></div></div><div class="nphpSytBox"><span>前の記事:<a class="dBlack" title="CSSのボーダープロパティについて詳しく解説" href="http://m.php.cn/ja/faq/374193.html">CSSのボーダープロパティについて詳しく解説</a></span><span>次の記事:<a class="dBlack" title="CSSのボーダープロパティについて詳しく解説" href="http://m.php.cn/ja/faq/374279.html">CSSのボーダープロパティについて詳しく解説</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>関連記事</h2><em><a href="http://m.php.cn/ja/article.html" class="bBlack"><i>続きを見る</i><b></b></a></em><div class="clear"></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6t+ed+2i-1n-4w" data-ad-client="ca-pub-5902227090019525" data-ad-slot="8966999616"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><ul class="nphpXgwzList"><li><b></b><a href="http://m.php.cn/ja/faq/348757.html" title="HTMLの知識のまとめ" class="aBlack">HTMLの知識のまとめ</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/ja/faq/348804.html" title="HTMLを早く学ぶ方法" class="aBlack">HTMLを早く学ぶ方法</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/ja/faq/348873.html" title="html xhtml xml の違い" class="aBlack">html xhtml xml の違い</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/ja/faq/348884.html" title="src 属性と href 属性の違い" class="aBlack">src 属性と href 属性の違い</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/ja/faq/348902.html" title="HTML5とCSSの置き換え利用について" class="aBlack">HTML5とCSSの置き換え利用について</a><div class="clear"></div></li></ul></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="5027754603"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><div class="nphpFoot"><div class="nphpFootBg"><ul class="nphpFootMenu"><li><a href="http://m.php.cn/ja/"><b class="icon1"></b><p>ホームページ</p></a></li><li><a href="http://m.php.cn/ja/course.html"><b class="icon2"></b><p>コース</p></a></li><li><a href="http://m.php.cn/ja/wenda.html"><b class="icon4"></b><p>に質問</p></a></li><li><a href="http://m.php.cn/ja/login"><b class="icon5"></b><p>私の</p></a></li><div class="clear"></div></ul></div></div><div class="nphpYouBox" style="display: none;"><div class="nphpYouBg"><div class="nphpYouTitle"><span onclick="$('.nphpYouBox').hide()"></span><a href="http://m.php.cn/ja/"></a><div class="clear"></div></div><ul class="nphpYouList"><li><a href="http://m.php.cn/ja/"><b class="icon1"></b><span>ホームページ</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/ja/course.html"><b class="icon2"></b><span>コース</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/ja/article.html"><b class="icon3"></b><span>記事</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/ja/wenda.html"><b class="icon4"></b><span>に質問</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/ja/dic.html"><b class="icon6"></b><span>辞書</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/ja/course/type/99.html"><b class="icon7"></b><span>マニュアル</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/ja/xiazai/"><b class="icon8"></b><span>ダウンロード</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/ja/faq/zt" title="特集"><b class="icon12"></b><span>特集</span><div class="clear"></div></a></li><div class="clear"></div></ul></div></div><div class="nphpDing" style="display: none;"><div class="nphpDinglogo"><a href="http://m.php.cn/ja/"></a></div><div class="nphpNavIn1"><div class="swiper-container nphpNavSwiper1"><div class="swiper-wrapper"><div class="swiper-slide"><a href="http://m.php.cn/ja/" >ホームページ</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/article.html" class="hover">記事</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/wenda.html" >に質問</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/course.html" >コース</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/faq/zt" >特集</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/xiazai" >ダウンロード</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/game" >ゲーム</a></div><div class="swiper-slide"><a href="http://m.php.cn/ja/dic.html" >辞書</a></div><div class="clear"></div></div></div><div class="langadivs" ><a href="javascript:;" class="bg4 bglanguage"></a><div class="langadiv" ><a onclick="javascript:setlang('zh-cn');" class="language course-right-orders chooselan " href="javascript:;"><span>简体中文</span><span>(ZH-CN)</span></a><a onclick="javascript:setlang('en');" class="language course-right-orders chooselan " href="javascript:;"><span>English</span><span>(EN)</span></a><a onclick="javascript:setlang('zh-tw');" class="language course-right-orders chooselan " href="javascript:;"><span>繁体中文</span><span>(ZH-TW)</span></a><a onclick="javascript:;" class="language course-right-orders chooselan chooselanguage" href="javascript:;"><span>日本語</span><span>(JA)</span></a><a onclick="javascript:setlang('ko');" class="language course-right-orders chooselan " href="javascript:;"><span>한국어</span><span>(KO)</span></a><a onclick="javascript:setlang('ms');" class="language course-right-orders chooselan " href="javascript:;"><span>Melayu</span><span>(MS)</span></a><a onclick="javascript:setlang('fr');" class="language course-right-orders chooselan " href="javascript:;"><span>Français</span><span>(FR)</span></a><a onclick="javascript:setlang('de');" class="language course-right-orders chooselan " href="javascript:;"><span>Deutsch</span><span>(DE)</span></a></div></div><script> var swiper = new Swiper('.nphpNavSwiper1', { slidesPerView : 'auto', observer: true,//修改swiper自己或子元素时,自动初始化swiper observeParents: true,//修改swiper的父元素时,自动初始化swiper }); </script></div></div><!--顶部导航 end--><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script>jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script></body></html>