3 4 5 </ti"/><meta property="og:local" content="de"> <meta property="og:title" content="Nachahmung der teilweise statischen Seitenanzeige von Sina-H5-Tutorial-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></ti"> <meta property="og:url" content="https://m.php.cn/de/faq/374251.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://www.php.cn/de/faq/374251.html"/> <link rel="alternate" hrefLang="zh-cn" href="https://m.php.cn/zh/faq/374251.html" /> <link rel="alternate" hrefLang="en" href="https://m.php.cn/faq/374251.html" /> <link rel="alternate" hrefLang="zh-tw" href="https://m.php.cn/zh-tw/faq/374251.html" /> <link rel="alternate" hrefLang="ja" href="https://m.php.cn/ja/faq/374251.html" /> <link rel="alternate" hrefLang="ko" href="https://m.php.cn/ko/faq/374251.html" /> <link rel="alternate" hrefLang="ms" href="https://m.php.cn/ms/faq/374251.html" /> <link rel="alternate" hrefLang="fr" href="https://m.php.cn/fr/faq/374251.html" /> <link rel="alternate" hrefLang="de" href="https://m.php.cn/de/faq/374251.html" /> <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=1" /><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><link rel="canonical" href="https://www.php.cn/de/faq/374251.html"/> <link rel="alternate" hrefLang="zh-cn" href="https://m.php.cn/zh/faq/374251.html" /> <link rel="alternate" hrefLang="en" href="https://m.php.cn/faq/374251.html" /> <link rel="alternate" hrefLang="zh-tw" href="https://m.php.cn/zh-tw/faq/374251.html" /> <link rel="alternate" hrefLang="ja" href="https://m.php.cn/ja/faq/374251.html" /> <link rel="alternate" hrefLang="ko" href="https://m.php.cn/ko/faq/374251.html" /> <link rel="alternate" hrefLang="ms" href="https://m.php.cn/ms/faq/374251.html" /> <link rel="alternate" hrefLang="fr" href="https://m.php.cn/fr/faq/374251.html" /> <link rel="alternate" hrefLang="de" href="https://m.php.cn/de/faq/374251.html" /> <script> var canshu = { SeeMore:'Mehr sehen', FoldUp:'Zusammenklappen', Choice:'Sprache', wait:'Laden, bitte warten~', LoginFirst:"Bitte loggen Sie sich zuerst ein", needKeyword:'Geben Sie die Stichwortsuche ein', emailPhoneError:'Bitte geben Sie die richtige Telefon- oder E-Mail-Adresse ein', missPwd:'Bitte geben Sie das Passwort ein', emailError:'Bitte geben Sie Ihre korrekte E-Mail-Adresse ein', VerCode:"Bitte den Bestätigungscode eingeben", getCode:'Senden', pwdError:'Falsches Passwortformat', TwoPassNotMatch:'Zwei Passwörter stimmen nicht überein', Bindemail:'E-Mail binden', resetpassword:'Passwort zurücksetzen', ConfirmPass:'Bestätige das Passwort', pwdCheck:'Bitte geben Sie 6-18 Buchstaben oder Zahlen ein', Editinfor: 'Persönliche Informationen bearbeiten', trimContent:'Bitte geben Sie Inhalte ein', titleCheck:'Der Titel sollte mindestens 5 Wörter lang sein', choiceLang:'Bitte wählen Sie eine Sprachklassifizierung aus', Secondreply:'Antwort', NetWorkError:'Netzwerkfehler, bitte versuchen Sie es später noch einmal!', keywordSearch:'Geben Sie die Stichwortsuche ein', all_lang_string:'zh|en|zh-tw|ja|ko|ms|fr|de', Next:'Nächste', Previous:'Vorherige' }; </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>--><script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"WebSite","url":"https:\/\/m.php.cn\/de\/","potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/m.php.cn\/de\/search?word={search_term_string}"},"query-input":"required name=search_term_string"}}</script><meta property="article:author" content="PHP中文网" /><meta property="article:published_first" content=",https://www.php.cn/faq/374251.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 type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script><script> var xnb_name = 'Virtual currency'; </script><script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","headline":"Nachahmung der teilweise statischen Seitenanzeige von Sina","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><\/ti","image":["img\/1.jpg"],"datePublished":"2017-07-14T18:15:14+8:00","author":{"url":"https:\/\/m.php.cn\/de\/member\/1.html","name":"PHP中文网"},"mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/m.php.cn\/de\/faq\/374251.html"},"url":"https:\/\/m.php.cn\/de\/faq\/374251.html","articleBody":"<div class=\"cnblogs_code\">\n<pre><span style=\"color: #008080\"> 1<\/span> <span style=\"color: #800000\">\n<\/span><span style=\"color: #008080\"> 2<\/span> <span style=\"color: #800000\">\n<\/span><span style=\"color: #008080\"> 3<\/span> <span style=\"color: #800000\">\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\">\n<\/span><span style=\"color: #008080\"> 8<\/span> <span style=\"color: #800000\">\n<\/span><span style=\"color: #008080\"> 9<\/span> <span style=\"color: #800000\"> <div id=\"dnews\">\n<span style=\"color: #008080\">10<\/span> <span style=\"color: #800000\"> <div id=\"dhead\"><a href=\"#\" target=\"_blank\">汽车\/在线购车<\/a><\/div>\n<\/span><span style=\"color: #008080\">11<\/span> <span style=\"color: #800000\"> <div id=\"news\">\n<span style=\"color: #008080\">12<\/span> <span style=\"color: #800000\"> <div id=\"newspic\"><a href=\"#\"><img src=\"img\/1.jpg\" alt=\"Nachahmung der teilweise statischen Seitenanzeige von Sina\" ><\/a><\/div>\n<\/span><span style=\"color: #008080\">13<\/span> <span style=\"color: #800000\"> <div id=\"newstitle\"><a href=\"#\">选贵的也要选对的 热销豪华中型SUV推荐<\/a><\/div>\n<\/span><span style=\"color: #008080\">14<\/span> <span style=\"color: #800000\"> <\/span>\n<\/div>\n<\/span><span style=\"color: #008080\">15<\/span> <span style=\"color: #800000\"> <ul id=\"tabs\">\n<\/ul><\/span><span style=\"color: #008080\">16<\/span> <span style=\"color: #800000\"> <li class=\"tab\"><a href=\"#\">新高尔夫百公里油耗为5L 奥迪Q4整体犀利<\/a><\/li>\n<\/span><span style=\"color: #008080\">17<\/span> <span style=\"color: #800000\"> <li class=\"tab\"><a href=\"#\">新高尔夫百公里油耗为5L 奥迪Q4整体犀利<\/a><\/li>\n<\/span><span style=\"color: #008080\">18<\/span> <span style=\"color: #800000\"> <li class=\"tab\"><a href=\"#\">新高尔夫百公里油耗为5L 奥迪Q4整体犀利<\/a><\/li>\n<\/span><span style=\"color: #008080\">19<\/span> <span style=\"color: #800000\"> <li class=\"tab\"><a href=\"#\">新高尔夫百公里油耗为5L 奥迪Q4整体犀利<\/a><\/li>\n<\/span><span style=\"color: #008080\">20<\/span> <span style=\"color: #800000\"> <li class=\"tab\"><a href=\"#\">新高尔夫百公里油耗为5L 奥迪Q4整体犀利<\/a><\/li>\n<\/span><span style=\"color: #008080\">21<\/span> <span style=\"color: #800000\"> <li class=\"tab\"><a href=\"#\">新高尔夫百公里油耗为5L 奥迪Q4整体犀利<\/a><\/li>\n<\/span><span style=\"color: #008080\">22<\/span> <span style=\"color: #800000\"> <li class=\"tab\"><a href=\"#\">新高尔夫百公里油耗为5L 奥迪Q4整体犀利<\/a><\/li>\n<\/span><span style=\"color: #008080\">23<\/span> <span style=\"color: #800000\"> \n<\/span><span style=\"color: #008080\">24<\/span> <span style=\"color: #800000\"> <\/span>\n<\/div>\n<\/span><span style=\"color: #008080\">25<\/span> <span style=\"color: #800000\">\n<\/span><span style=\"color: #008080\">26<\/span> <span style=\"color: #800000\"><\/span><\/pre>\n<\/div>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #008080\"> 1<\/span> <span style=\"color: #800000\">a<\/span>{\n<span style=\"color: #008080\"> 2<\/span> <span style=\"color: #ff0000\"> text-decoration<\/span>:<span style=\"color: #0000ff\">none<\/span>;\n<span style=\"color: #008080\"> 3<\/span> }\n<span style=\"color: #008080\"> 4<\/span> <span style=\"color: #800000\">#dnews<\/span>{\n<span style=\"color: #008080\"> 5<\/span> <span style=\"color: #ff0000\"> width<\/span>:<span style=\"color: #0000ff\">320px<\/span>;\n<span style=\"color: #008080\"> 6<\/span> <span style=\"color: #ff0000\"> height<\/span>:<span style=\"color: #0000ff\">264px<\/span>;\n<span style=\"color: #008080\"> 7<\/span> \n<span style=\"color: #008080\"> 8<\/span> }\n<span style=\"color: #008080\"> 9<\/span> <span style=\"color: #800000\">#dhead<\/span>{\n<span style=\"color: #008080\">10<\/span> <span style=\"color: #ff0000\"> width<\/span>:<span style=\"color: #0000ff\">320px<\/span>;\n<span style=\"color: #008080\">11<\/span> <span style=\"color: #ff0000\"> height<\/span>:<span style=\"color: #0000ff\">30px<\/span>;\n<span style=\"color: #008080\">12<\/span> <span style=\"color: #ff0000\"> padding-left<\/span>:<span style=\"color: #0000ff\">10px<\/span>;\n<span style=\"color: #008080\">13<\/span> <span style=\"color: #ff0000\"> box-sizing<\/span>:<span style=\"color: #0000ff\">border-box<\/span>;\n<span style=\"color: #008080\">14<\/span> <span style=\"color: #ff0000\"> line-height<\/span>:<span style=\"color: #0000ff\">30px<\/span>;\n<span style=\"color: #008080\">15<\/span> <span style=\"color: #ff0000\"> background-color<\/span>:<span style=\"color: #0000ff\">rgba(76,255,0,0.1)<\/span>;\n<span style=\"color: #008080\">16<\/span> }\n<span style=\"color: #008080\">17<\/span> <span style=\"color: #800000\">#dnews #dhead a:hover<\/span>{\n<span style=\"color: #008080\">18<\/span> <span style=\"color: #ff0000\"> color<\/span>:<span style=\"color: #0000ff\">blue<\/span>;\n<span style=\"color: #008080\">19<\/span> }\n<span style=\"color: #008080\">20<\/span> <span style=\"color: #800000\">#news<\/span>{\n<span style=\"color: #008080\">21<\/span> <span style=\"color: #ff0000\"> width<\/span>:<span style=\"color: #0000ff\">320px<\/span>;\n<span style=\"color: #008080\">22<\/span> <span style=\"color: #ff0000\"> height<\/span>:<span style=\"color: #0000ff\">70px<\/span>; \n<span style=\"color: #008080\">23<\/span> <span style=\"color: #ff0000\"> margin-top<\/span>:<span style=\"color: #0000ff\">10px<\/span>;\n<span style=\"color: #008080\">24<\/span> }\n<span style=\"color: #008080\">25<\/span> <span style=\"color: #800000\">#news #newspic<\/span>{\n<span style=\"color: #008080\">26<\/span> <span style=\"color: #ff0000\"> float<\/span>:<span style=\"color: #0000ff\">left<\/span>;\n<span style=\"color: #008080\">27<\/span> <span style=\"color: #ff0000\"> width<\/span>:<span style=\"color: #0000ff\"> 36%<\/span>;\n<span style=\"color: #008080\">28<\/span> }\n<span style=\"color: #008080\">29<\/span> <span style=\"color: #800000\">#news #newstitle<\/span>{\n<span style=\"color: #008080\">30<\/span> <span style=\"color: #ff0000\"> width<\/span>:<span style=\"color: #0000ff\"> 64%<\/span>;\n<span style=\"color: #008080\">31<\/span> <span style=\"color: #008000\">\/*<\/span><span style=\"color: #008000\"> padding-left: 10px; <\/span><span style=\"color: #008000\">*\/<\/span>\n<span style=\"color: #008080\">32<\/span> <span style=\"color: #ff0000\"> font-size<\/span>:<span style=\"color: #0000ff\"> 16px<\/span>;\n<span style=\"color: #008080\">33<\/span> <span style=\"color: #008000\">\/*<\/span><span style=\"color: #008000\"> margin-left: 5px; <\/span><span style=\"color: #008000\">*\/<\/span>\n<span style=\"color: #008080\">34<\/span> <span style=\"color: #008000\">\/*<\/span><span style=\"color: #008000\"> padding-left: 4px; <\/span><span style=\"color: #008000\">*\/<\/span>\n<span style=\"color: #008080\">35<\/span> <span style=\"color: #ff0000\"> float<\/span>:<span style=\"color: #0000ff\"> left<\/span>;\n<span style=\"color: #008080\">36<\/span> }\n<span style=\"color: #008080\">37<\/span> <span style=\"color: #800000\">#news #newstitle a:hover<\/span>{\n<span style=\"color: #008080\">38<\/span> <span style=\"color: #ff0000\"> color<\/span>:<span style=\"color: #0000ff\">blue<\/span>;\n<span style=\"color: #008080\">39<\/span> }\n<span style=\"color: #008080\">40<\/span> <span style=\"color: #800000\">#tabs<\/span>{\n<span style=\"color: #008080\">41<\/span> <span style=\"color: #ff0000\"> list-style-type<\/span>:<span style=\"color: #0000ff\">none<\/span>;\n<span style=\"color: #008080\">42<\/span> <span style=\"color: #ff0000\"> color<\/span>:<span style=\"color: #0000ff\">black<\/span>;\n<span style=\"color: #008080\">43<\/span> <span style=\"color: #ff0000\"> font-size<\/span>:<span style=\"color: #0000ff\">14px<\/span>;\n<span style=\"color: #008080\">44<\/span> <span style=\"color: #ff0000\"> line-height<\/span>:<span style=\"color: #0000ff\">20px<\/span>;\n<span style=\"color: #008080\">45<\/span> <span style=\"color: #ff0000\"> float<\/span>:<span style=\"color: #0000ff\">left<\/span>;\n<span style=\"color: #008080\">46<\/span> <span style=\"color: #ff0000\"> margin<\/span>:<span style=\"color: #0000ff\"> 0px -40px<\/span>;\n<span style=\"color: #008080\">47<\/span> \n<span style=\"color: #008080\">48<\/span> }\n<span style=\"color: #008080\">49<\/span> <span style=\"color: #800000\">#tabs .tab a:hover<\/span>{\n<span style=\"color: #008080\">50<\/span> <span style=\"color: #ff0000\"> color<\/span>:<span style=\"color: #0000ff\">red<\/span>;\n<span style=\"color: #008080\">51<\/span> }\n<span style=\"color: #008080\">52<\/span> <span style=\"color: #800000\">.tab<\/span>{\n<span style=\"color: #008080\">53<\/span> <span style=\"color: #ff0000\"> background-image<\/span>:<span style=\"color: #0000ff\">url(..\/img\/2.png)<\/span>;\n<span style=\"color: #008080\">54<\/span> <span style=\"color: #ff0000\"> background-repeat<\/span>:<span style=\"color: #0000ff\">no-repeat<\/span>;\n<span style=\"color: #008080\">55<\/span> <span style=\"color: #ff0000\"> padding-left<\/span>:<span style=\"color: #0000ff\">20px<\/span>;\n<span style=\"color: #008080\">56<\/span> <span style=\"color: #ff0000\"> background-position-y<\/span>:<span style=\"color: #0000ff\">center<\/span>;\n<span style=\"color: #008080\">57<\/span> }<\/pre>\n<\/div>\n<p> <\/p>"}</script><script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https:\/\/m.php.cn\/de\/","name":"Heim"}},{"@type":"ListItem","position":2,"item":{"@id":"https:\/\/m.php.cn\/web-designer.html","name":"Web-Frontend"}},{"@type":"ListItem","position":3,"item":{"@id":"https:\/\/m.php.cn\/de\/html5-tutorial.html","name":"H5-Tutorial"}},{"@type":"ListItem","position":4,"item":{"@id":"https:\/\/m.php.cn\/de\/faq\/374251.html","name":"Nachahmung der teilweise statischen Seitenanzeige von Sina"}}]}</script></head><body data-commit-time="2023-12-28T14:50:12+08:00" class="body2_2"><link rel="stylesheet" type="text/css" href="/static/csshwm/m_stylehw.css"><header><div class="head"><div class="haed_left"><div class="haed_logo"><a href="https://m.php.cn/de/" title="Chinesische PHP-Website" class="haed_logo_a"><img src="/static/imghwm/logo.png" alt="Chinesische PHP-Website" class="haed_logoimg"></a></div></div><div class="search_div search_div_top2"><input id="key_words" class="search-input" type="text" autocomplete="off" name="keywords" required="required" placeholder="Block,address,transaction,news" value="" onkeydown="if (event.keyCode == 13) searchs('de')"/><a onclick="searchs('de')" href="javascript:;" title="suchen"><img onerror="this.onerror=''; this.src='static/imghwm/default1.png'" src="/static/imghwm/find.png" alt="suchen"></a></div><div class="head_right"><button type="button" class="layui-btn layui-btn-primary headerlan headlanmax lan1" id="lan1sp" lay-on="test-offset-r"><img src="/static/imghwm/m_menu.png" alt=""></button><div id="m_menu" class="m_menu" style="display: none;"><div class="m_editormain12main_top"><img src="/static/imghwm/logo.png" alt="logo"><a href="javascript:;" class="m_editormain12main_topi" id="m_editormain12main_topi_sp"><i class="layui-icon layui-icon-close"></i></a></div><div class="layui-panel m_menu_main"><ul class="layui-menu" id="demo-menu"><li class="layui-menu-item-group layui-menu-item-up m_menus" lay-options="{type: 'group'}"><div class="layui-menu-body-title m_menus_title">Gemeinschaft<i class="layui-icon layui-icon-down"></i></div><ul class="m_menusnames"><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/article.html" title="Artikel">Artikel</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/faq/zt" title="Themen">Themen</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/wenda.html" title="Fragen und Antworten">Fragen und Antworten</a></div></li></ul></li><li class="layui-menu-item-divider"></li><li class="layui-menu-item-group layui-menu-item-up m_menus" lay-options="{type: 'group'}"><div class="layui-menu-body-title m_menus_title">Lernen<i class="layui-icon layui-icon-down"></i></div><ul class="m_menusnames"><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/course.html" title="Kurs">Kurs</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/dic/29.html" title="Programmierwörterbuch">Programmierwörterbuch</a></div></li></ul></li><li class="layui-menu-item-divider"></li><li class="layui-menu-item-group layui-menu-item-up m_menus" lay-options="{type: 'group'}"><div class="layui-menu-body-title m_menus_title">Tools-Bibliothek<i class="layui-icon layui-icon-down"></i></div><ul class="m_menusnames"><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/toolset/development-tools" title="Entwicklungswerkzeuge">Entwicklungswerkzeuge</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/toolset/website-source-code" title="Quellcode der Website">Quellcode der Website</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/toolset/php-libraries" title="PHP-Bibliotheken">PHP-Bibliotheken</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/toolset/js-special-effects" title="JS-Spezialeffekte">JS-Spezialeffekte</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/toolset/website-materials" title="Website-Materialien">Website-Materialien</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/toolset/extension-plug-ins" title="Erweiterungs-Plug-Ins">Erweiterungs-Plug-Ins</a></div></li></ul></li><li class="layui-menu-item-divider"></li><li lay-options="{id: 100}"><div class="layui-menu-body-title m_menus_oth"><a href="https://m.php.cn/de/ai" title="KI-Tools">KI-Tools</a></div></li><li class="layui-menu-item-divider"></li><li class="layui-menu-item-group layui-menu-item-up m_menus" lay-options="{type: 'group'}"><div class="layui-menu-body-title m_menus_title">Freizeit<i class="layui-icon layui-icon-down"></i></div><ul class="m_menusnames"><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/game" title="Spiel-Download">Spiel-Download</a></div></li><li><div class="layui-menu-body-title m_menus_name"><a href="https://m.php.cn/de/mobile-game-tutorial/" title="Spiel-Tutorials">Spiel-Tutorials</a></div></li></ul></li><li class="layui-menu-item-divider"></li></ul></div><!-- <div class="m_menu_button">--><!-- <a href="javascript:;" title="singup">Create an account</a>--><!-- </div>--><div class="m_menu_button m_menu_button_login"><a href="https://m.php.cn/de/login" title="Login">Log in</a></div><div class="m_menu_button m_menu_button_lang"><button type="button" class="layui-btn layui-btn-primary headerlan headlanmax lan1" id="lan1" lay-on="page2">Deutsch<i class="layui-icon layui-icon-triangle-d"></i></button></div></div><div class="m_menu_lang" id="m_menu_lang" style="display: none;"><div class="m_editormain12main_top"><img src="/static/imghwm/logo.png" alt="logo"><a href="javascript:;" class="m_editormain12main_topi" id="m_editormain12main_topi_lan"><i class="layui-icon layui-icon-close"></i></a></div><div class="m_menu_lang_main"><a href="javascript:setlang('zh-cn');" class="m_menu_lang_mains">简体中文<span>zh-cn</span></a><a href="javascript:setlang('en');" class="m_menu_lang_mains">English<span>en</span></a><a href="javascript:setlang('zh-tw');" class="m_menu_lang_mains">繁体中文<span>zh-tw</span></a><a href="javascript:setlang('ja');" class="m_menu_lang_mains">日本語<span>ja</span></a><a href="javascript:setlang('ko');" class="m_menu_lang_mains">한국어<span>ko</span></a><a href="javascript:setlang('ms');" class="m_menu_lang_mains">Melayu<span>ms</span></a><a href="javascript:setlang('fr');" class="m_menu_lang_mains">Français<span>fr</span></a><a href="javascript:;" class="m_menu_lang_mains">Deutsch<span>de</span></a></div></div></div></div></header><script> document.getElementById('lan1sp').addEventListener('click', function (event) { event.preventDefault(); var elements = document.getElementsByClassName('m_menu'); for (var i = 0; i < elements.length; i++) { elements[i].style.display = 'block'; } }); document.getElementById('m_editormain12main_topi_sp').addEventListener('click', function (event) { event.preventDefault(); var elements = document.getElementsByClassName('m_menu'); for (var i = 0; i < elements.length; i++) { elements[i].style.display = 'none'; } }); document.getElementById('lan1').addEventListener('click', function (event) { event.preventDefault(); var elements = document.getElementsByClassName('m_menu_lang'); for (var i = 0; i < elements.length; i++) { elements[i].style.display = 'block'; } }); document.getElementById('m_editormain12main_topi_lan').addEventListener('click', function (event) { event.preventDefault(); var elements = document.getElementsByClassName('m_menu_lang'); for (var i = 0; i < elements.length; i++) { elements[i].style.display = 'none'; } }); </script><main class="m_phpTopic_Details m_phpArticle_Details"><div class="Article_Details_main1M"><div class="phpgenera_Details_mainL1"><a href="https://m.php.cn/de/" title="Heim" class="phpgenera_Details_mainL1a">Heim</a><img class="lazy" data-src="/static/imghwm/top_right.png" src="/static/imghw/default1.png" alt="" /><a href="https://m.php.cn/web-designer.html" class="phpgenera_Details_mainL1a">Web-Frontend</a><img class="lazy" data-src="/static/imghwm/top_right.png" src="/static/imghw/default1.png" alt="" /><a href="https://m.php.cn/de/html5-tutorial.html" class="phpgenera_Details_mainL1a">H5-Tutorial</a><img class="lazy" data-src="/static/imghwm/top_right.png" src="/static/imghw/default1.png" alt="" /><span>Nachahmung der teilweise statischen Seitenanzeige von Sina</span></div><div class="Articlelist_txts"><div class="Articlelist_txts_info"><h1><a href="" title="" class="Articlelist_txts_title">Nachahmung der teilweise statischen Seitenanzeige von Sina</a></h1><div class="Articlelist_txts_info_head"><div class="author_info"><a href="https://m.php.cn/de/member/1.html" class="author_avatar"><img class="lazy" data-src="https://img.php.cn/upload/avatar/000/000/001/6251028808086368.png" alt="PHP中文网" src="/static/imghw/default1.png" alt="author avatar" onerror="this.onerror=''; this.src='/static/imghw/default1.png'"></a><div class="author_detail"><a href="https://m.php.cn/de/member/1.html" class="author_name">PHP中文网</a></div></div></div><span class="Articlelist_txts_time">Jul 14, 2017 pm 06:15 PM</span><div class="Articlelist_txts_infos"><span class="Articlelist_txts_infoss on">展示</span><span class="Articlelist_txts_infoss ">statisch</span><span class="Articlelist_txts_infoss ">页面</span></div></div></div><hr /><div class="article_main wenda-list"><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: #800000"> </span><span style="color: #008080"> 3</span> <span style="color: #800000"> </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"> </span><span style="color: #008080"> 8</span> <span style="color: #800000"> </span><span style="color: #008080"> 9</span> <span style="color: #800000"> <div id="dnews"> <span style="color: #008080">10</span> <span style="color: #800000"> <div id="dhead"><a href="#" target="_blank">汽车/在线购车</a></div> </span><span style="color: #008080">11</span> <span style="color: #800000"> <div id="news"> <span style="color: #008080">12</span> <span style="color: #800000"> <div id="newspic"><a href="#"><img src="/static/imghwm/default1.png" data-src="img/1.jpg" class="lazy" alt="Nachahmung der teilweise statischen Seitenanzeige von Sina" ></a></div> </span><span style="color: #008080">13</span> <span style="color: #800000"> <div id="newstitle"><a href="#">选贵的也要选对的 热销豪华中型SUV推荐</a></div> </span><span style="color: #008080">14</span> <span style="color: #800000"> </span> </div> </span><span style="color: #008080">15</span> <span style="color: #800000"> <ul id="tabs"> </ul></span><span style="color: #008080">16</span> <span style="color: #800000"> <li class="tab"><a href="#">新高尔夫百公里油耗为5L 奥迪Q4整体犀利</a></li> </span><span style="color: #008080">17</span> <span style="color: #800000"> <li class="tab"><a href="#">新高尔夫百公里油耗为5L 奥迪Q4整体犀利</a></li> </span><span style="color: #008080">18</span> <span style="color: #800000"> <li class="tab"><a href="#">新高尔夫百公里油耗为5L 奥迪Q4整体犀利</a></li> </span><span style="color: #008080">19</span> <span style="color: #800000"> <li class="tab"><a href="#">新高尔夫百公里油耗为5L 奥迪Q4整体犀利</a></li> </span><span style="color: #008080">20</span> <span style="color: #800000"> <li class="tab"><a href="#">新高尔夫百公里油耗为5L 奥迪Q4整体犀利</a></li> </span><span style="color: #008080">21</span> <span style="color: #800000"> <li class="tab"><a href="#">新高尔夫百公里油耗为5L 奥迪Q4整体犀利</a></li> </span><span style="color: #008080">22</span> <span style="color: #800000"> <li class="tab"><a href="#">新高尔夫百公里油耗为5L 奥迪Q4整体犀利</a></li> </span><span style="color: #008080">23</span> <span style="color: #800000"> </span><span style="color: #008080">24</span> <span style="color: #800000"> </span> </div> </span><span style="color: #008080">25</span> <span style="color: #800000"> </span><span style="color: #008080">26</span> <span style="color: #800000"></span></pre> </div> <div class="cnblogs_code"> <pre class="brush:php;toolbar:false"><span style="color: #008080"> 1</span> <span style="color: #800000">a</span>{ <span style="color: #008080"> 2</span> <span style="color: #ff0000"> text-decoration</span>:<span style="color: #0000ff">none</span>; <span style="color: #008080"> 3</span> } <span style="color: #008080"> 4</span> <span style="color: #800000">#dnews</span>{ <span style="color: #008080"> 5</span> <span style="color: #ff0000"> width</span>:<span style="color: #0000ff">320px</span>; <span style="color: #008080"> 6</span> <span style="color: #ff0000"> height</span>:<span style="color: #0000ff">264px</span>; <span style="color: #008080"> 7</span> <span style="color: #008080"> 8</span> } <span style="color: #008080"> 9</span> <span style="color: #800000">#dhead</span>{ <span style="color: #008080">10</span> <span style="color: #ff0000"> width</span>:<span style="color: #0000ff">320px</span>; <span style="color: #008080">11</span> <span style="color: #ff0000"> height</span>:<span style="color: #0000ff">30px</span>; <span style="color: #008080">12</span> <span style="color: #ff0000"> padding-left</span>:<span style="color: #0000ff">10px</span>; <span style="color: #008080">13</span> <span style="color: #ff0000"> box-sizing</span>:<span style="color: #0000ff">border-box</span>; <span style="color: #008080">14</span> <span style="color: #ff0000"> line-height</span>:<span style="color: #0000ff">30px</span>; <span style="color: #008080">15</span> <span style="color: #ff0000"> background-color</span>:<span style="color: #0000ff">rgba(76,255,0,0.1)</span>; <span style="color: #008080">16</span> } <span style="color: #008080">17</span> <span style="color: #800000">#dnews #dhead a:hover</span>{ <span style="color: #008080">18</span> <span style="color: #ff0000"> color</span>:<span style="color: #0000ff">blue</span>; <span style="color: #008080">19</span> } <span style="color: #008080">20</span> <span style="color: #800000">#news</span>{ <span style="color: #008080">21</span> <span style="color: #ff0000"> width</span>:<span style="color: #0000ff">320px</span>; <span style="color: #008080">22</span> <span style="color: #ff0000"> height</span>:<span style="color: #0000ff">70px</span>; <span style="color: #008080">23</span> <span style="color: #ff0000"> margin-top</span>:<span style="color: #0000ff">10px</span>; <span style="color: #008080">24</span> } <span style="color: #008080">25</span> <span style="color: #800000">#news #newspic</span>{ <span style="color: #008080">26</span> <span style="color: #ff0000"> float</span>:<span style="color: #0000ff">left</span>; <span style="color: #008080">27</span> <span style="color: #ff0000"> width</span>:<span style="color: #0000ff"> 36%</span>; <span style="color: #008080">28</span> } <span style="color: #008080">29</span> <span style="color: #800000">#news #newstitle</span>{ <span style="color: #008080">30</span> <span style="color: #ff0000"> width</span>:<span style="color: #0000ff"> 64%</span>; <span style="color: #008080">31</span> <span style="color: #008000">/*</span><span style="color: #008000"> padding-left: 10px; </span><span style="color: #008000">*/</span> <span style="color: #008080">32</span> <span style="color: #ff0000"> font-size</span>:<span style="color: #0000ff"> 16px</span>; <span style="color: #008080">33</span> <span style="color: #008000">/*</span><span style="color: #008000"> margin-left: 5px; </span><span style="color: #008000">*/</span> <span style="color: #008080">34</span> <span style="color: #008000">/*</span><span style="color: #008000"> padding-left: 4px; </span><span style="color: #008000">*/</span> <span style="color: #008080">35</span> <span style="color: #ff0000"> float</span>:<span style="color: #0000ff"> left</span>; <span style="color: #008080">36</span> } <span style="color: #008080">37</span> <span style="color: #800000">#news #newstitle a:hover</span>{ <span style="color: #008080">38</span> <span style="color: #ff0000"> color</span>:<span style="color: #0000ff">blue</span>; <span style="color: #008080">39</span> } <span style="color: #008080">40</span> <span style="color: #800000">#tabs</span>{ <span style="color: #008080">41</span> <span style="color: #ff0000"> list-style-type</span>:<span style="color: #0000ff">none</span>; <span style="color: #008080">42</span> <span style="color: #ff0000"> color</span>:<span style="color: #0000ff">black</span>; <span style="color: #008080">43</span> <span style="color: #ff0000"> font-size</span>:<span style="color: #0000ff">14px</span>; <span style="color: #008080">44</span> <span style="color: #ff0000"> line-height</span>:<span style="color: #0000ff">20px</span>; <span style="color: #008080">45</span> <span style="color: #ff0000"> float</span>:<span style="color: #0000ff">left</span>; <span style="color: #008080">46</span> <span style="color: #ff0000"> margin</span>:<span style="color: #0000ff"> 0px -40px</span>; <span style="color: #008080">47</span> <span style="color: #008080">48</span> } <span style="color: #008080">49</span> <span style="color: #800000">#tabs .tab a:hover</span>{ <span style="color: #008080">50</span> <span style="color: #ff0000"> color</span>:<span style="color: #0000ff">red</span>; <span style="color: #008080">51</span> } <span style="color: #008080">52</span> <span style="color: #800000">.tab</span>{ <span style="color: #008080">53</span> <span style="color: #ff0000"> background-image</span>:<span style="color: #0000ff">url(../img/2.png)</span>; <span style="color: #008080">54</span> <span style="color: #ff0000"> background-repeat</span>:<span style="color: #0000ff">no-repeat</span>; <span style="color: #008080">55</span> <span style="color: #ff0000"> padding-left</span>:<span style="color: #0000ff">20px</span>; <span style="color: #008080">56</span> <span style="color: #ff0000"> background-position-y</span>:<span style="color: #0000ff">center</span>; <span style="color: #008080">57</span> }</pre> </div> <p> </p><p>Das obige ist der detaillierte Inhalt vonNachahmung der teilweise statischen Seitenanzeige von Sina. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!</p></div><div class="wzconShengming_sp"><div class="bzsmdiv_sp">Stellungnahme</div><div>Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn</div></div></div><div class="phpgenera_Details_mainL4"><div class="phpmain1_2_top"><a href="javascript:void(0);" class="phpmain1_2_top_title">Verwandter Artikel<img class="lazy" data-src="/static/imghwm/index2_title2.png" src="/static/imghw/default1.png" alt="" /></a></div><div class="phpgenera_Details_mainL4_info"><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796801327.html" title="Beispiele für H5 -Code: Praktische Anwendungen und Tutorials" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174551104254650.jpg?x-oss-process=image/resize,p_40" alt="Beispiele für H5 -Code: Praktische Anwendungen und Tutorials" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796801327.html" title="Beispiele für H5 -Code: Praktische Anwendungen und Tutorials" class="phphistorical_Version2_mids_title">Beispiele für H5 -Code: Praktische Anwendungen und Tutorials</a><span class="Articlelist_txts_time">Apr 25, 2025 am 12:10 AM</span><p class="Articlelist_txts_p">H5 bietet eine Vielzahl neuer Funktionen und Funktionen und verbessert die Fähigkeiten der Front-End-Entwicklung erheblich. 1. Multimedia-Unterstützung: Einbetten von Medien und Elementen, keine Plug-Ins sind erforderlich. 2. Leinwand: Verwenden Sie Elemente, um 2D -Grafiken und -Animationen dynamisch zu rendern. 3. Lokaler Speicher: Implementieren Sie die persistente Datenspeicherung über LocalStorage und SessionStorage, um die Benutzererfahrung zu verbessern.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796800887.html" title="Die Verbindung zwischen H5 und HTML5: Ähnlichkeiten und Unterschiede" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174542411212625.jpg?x-oss-process=image/resize,p_40" alt="Die Verbindung zwischen H5 und HTML5: Ähnlichkeiten und Unterschiede" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796800887.html" title="Die Verbindung zwischen H5 und HTML5: Ähnlichkeiten und Unterschiede" class="phphistorical_Version2_mids_title">Die Verbindung zwischen H5 und HTML5: Ähnlichkeiten und Unterschiede</a><span class="Articlelist_txts_time">Apr 24, 2025 am 12:01 AM</span><p class="Articlelist_txts_p">H5 und HTML5 sind verschiedene Konzepte: HTML5 ist eine Version von HTML, die neue Elemente und APIs enthält. H5 ist ein Rahmen für mobile Anwendungsentwicklungen, die auf HTML5 basieren. HTML5 pariert und rendert Code über den Browser, während H5 -Anwendungen Container ausführen und über JavaScript mit nativem Code interagieren müssen.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796800602.html" title="Die Bausteine ​​des H5 -Codes: Schlüsselelemente und deren Zweck" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174533817284091.jpg?x-oss-process=image/resize,p_40" alt="Die Bausteine ​​des H5 -Codes: Schlüsselelemente und deren Zweck" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796800602.html" title="Die Bausteine ​​des H5 -Codes: Schlüsselelemente und deren Zweck" class="phphistorical_Version2_mids_title">Die Bausteine ​​des H5 -Codes: Schlüsselelemente und deren Zweck</a><span class="Articlelist_txts_time">Apr 23, 2025 am 12:09 AM</span><p class="Articlelist_txts_p">Zu den wichtigsten Elementen von HTML5 gehören ,,,,,, usw., mit denen moderne Webseiten erstellt werden. 1. Definieren Sie den Kopfinhalt, 2. Zum Navigieren durch den Link, 3. darstellen den Inhalt unabhängiger Artikel, 4. organisieren Sie den Seiteninhalt, 5. Zeigen Sie den Seitenleisteninhalt an, 6. Definieren Sie die Fußzeile. Diese Elemente verbessern die Struktur und Funktionalität der Webseite.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796800095.html" title="HTML5 und H5: Verständnis der gemeinsamen Verwendung" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174525130290661.jpg?x-oss-process=image/resize,p_40" alt="HTML5 und H5: Verständnis der gemeinsamen Verwendung" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796800095.html" title="HTML5 und H5: Verständnis der gemeinsamen Verwendung" class="phphistorical_Version2_mids_title">HTML5 und H5: Verständnis der gemeinsamen Verwendung</a><span class="Articlelist_txts_time">Apr 22, 2025 am 12:01 AM</span><p class="Articlelist_txts_p">Es gibt keinen Unterschied zwischen HTML5 und H5, der Abkürzung von HTML5. 1.HTML5 ist die fünfte Version von HTML, die die Multimedia- und interaktiven Funktionen von Webseiten verbessert. 2.H5 wird häufig verwendet, um auf HTML5-basierte mobile Webseiten oder -anwendungen zu verweisen, und eignet sich für verschiedene mobile Geräte.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796799447.html" title="HTML5: Die Bausteine ​​des modernen Webs (H5)" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174516510279313.jpg?x-oss-process=image/resize,p_40" alt="HTML5: Die Bausteine ​​des modernen Webs (H5)" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796799447.html" title="HTML5: Die Bausteine ​​des modernen Webs (H5)" class="phphistorical_Version2_mids_title">HTML5: Die Bausteine ​​des modernen Webs (H5)</a><span class="Articlelist_txts_time">Apr 21, 2025 am 12:05 AM</span><p class="Articlelist_txts_p">HTML5 ist die neueste Version der Hypertext -Markup -Sprache, die von W3C standardisiert wurde. HTML5 führt neue semantische Tags, Multimedia -Support- und Form -Verbesserungen ein, verbessert die Webstruktur, die Benutzererfahrung und die SEO -Effekte. HTML5 führt neue semantische Tags vor, wie z. HTML5 unterstützt Multimedia-Elemente und es sind keine Plug-Ins von Drittanbietern erforderlich, wodurch die Benutzererfahrung und die Ladegeschwindigkeit verbessert werden. HTML5 verbessert die Formfunktionen und führt neue Eingangstypen wie usw. ein, die die Effizienz der Benutzererfahrung und der Form von Formularverifizierung verbessert.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796798868.html" title="H5 -Code: Sauberes und effizientes HTML5 schreiben" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174507877285589.jpg?x-oss-process=image/resize,p_40" alt="H5 -Code: Sauberes und effizientes HTML5 schreiben" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796798868.html" title="H5 -Code: Sauberes und effizientes HTML5 schreiben" class="phphistorical_Version2_mids_title">H5 -Code: Sauberes und effizientes HTML5 schreiben</a><span class="Articlelist_txts_time">Apr 20, 2025 am 12:06 AM</span><p class="Articlelist_txts_p">Wie schreibe ich sauberen und effizienten HTML5 -Code? Die Antwort besteht darin, häufige Fehler zu vermeiden, indem Tags, strukturierte Code, Leistungsoptimierung und die Vermeidung häufiger Fehler vermieden werden. 1. Verwenden Sie semantische Tags wie usw., um die Code -Lesbarkeit und SEO -Effekt zu verbessern. 2. Halten Sie den Code strukturiert und lesbar, wobei entsprechende Eindrücke und Kommentare verwendet werden. 3. Optimieren Sie die Leistung, indem Sie unnötige Tags reduzieren, CDN- und Komprimierungscode. V.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796798343.html" title="H5: Wie es die Benutzererfahrung im Web verbessert" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174499251279316.jpg?x-oss-process=image/resize,p_40" alt="H5: Wie es die Benutzererfahrung im Web verbessert" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796798343.html" title="H5: Wie es die Benutzererfahrung im Web verbessert" class="phphistorical_Version2_mids_title">H5: Wie es die Benutzererfahrung im Web verbessert</a><span class="Articlelist_txts_time">Apr 19, 2025 am 12:08 AM</span><p class="Articlelist_txts_p">H5 verbessert die Erfahrung des Webbenutzers mit Multimedia -Support, Offline -Speicher und Leistungsoptimierung. 1) Multimedia -Unterstützung: H5 und Elemente vereinfachen die Entwicklung und verbessern die Benutzererfahrung. 2) Offline -Speicher: Webstorage und IndexedDB ermöglichen die Verstärkung der Erfahrung offline. 3) Leistungsoptimierung: Webworker und Elemente optimieren die Leistung, um den Bandbreitenverbrauch zu verringern.</p></div><div class="phphistorical_Version2_mids"><a href="https://m.php.cn/de/faq/1796797806.html" title="Dekonstruieren von H5 -Code: Tags, Elemente und Attribute" class="phphistorical_Version2_mids_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174490596269472.jpg?x-oss-process=image/resize,p_40" alt="Dekonstruieren von H5 -Code: Tags, Elemente und Attribute" src="/static/imghw/default1.png" /></a><a href="https://m.php.cn/de/faq/1796797806.html" title="Dekonstruieren von H5 -Code: Tags, Elemente und Attribute" class="phphistorical_Version2_mids_title">Dekonstruieren von H5 -Code: Tags, Elemente und Attribute</a><span class="Articlelist_txts_time">Apr 18, 2025 am 12:06 AM</span><p class="Articlelist_txts_p">Der HTML5 -Code besteht aus Tags, Elementen und Attributen: 1. Das Tag definiert den Inhaltstyp und ist von Winkelklammern umgeben, wie z. 2. Elemente bestehen aus Start -Tags, Inhalten und End -Tags wie Inhalten. 3. Attribute definieren Schlüsselwertpaare im Start-Tag und verbessern Funktionen, z. B.. Dies sind die grundlegenden Einheiten zum Aufbau von Webstruktur.</p></div></div><a href="https://m.php.cn/web-designer.html" class="phpgenera_Details_mainL4_botton"><span>See all articles</span><img class="lazy" data-src="/static/imghwm/down_right.png" src="/static/imghw/default1.png" alt="" /></a></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><div class="AI_ToolDetails_main4sR"><div class="phpgenera_Details_mainR3"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hottools2.png" src="/static/imghw/default1.png" alt="" /><h2>Heiße KI -Werkzeuge</h2></div><div class="phpgenera_Details_mainR3_bottom"><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/de/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/de/ai/undresserai-undress" title="Undresser.AI Undress"class="phpmain_tab2_mids_title"><h3>Undresser.AI Undress</h3></a><p>KI-gestützte App zum Erstellen realistischer Aktfotos</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/de/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/de/ai/ai-clothes-remover" title="AI Clothes Remover"class="phpmain_tab2_mids_title"><h3>AI Clothes Remover</h3></a><p>Online-KI-Tool zum Entfernen von Kleidung aus Fotos.</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/de/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/de/ai/undress-ai-tool" title="Undress AI Tool"class="phpmain_tab2_mids_title"><h3>Undress AI Tool</h3></a><p>Ausziehbilder kostenlos</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/de/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/de/ai/clothoffio" title="Clothoff.io"class="phpmain_tab2_mids_title"><h3>Clothoff.io</h3></a><p>KI-Kleiderentferner</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ai/video-swap" title="Video Face Swap"class="phpmain_tab2_mids_title"><h3>Video Face Swap</h3></a><p>Tauschen Sie Gesichter in jedem Video mühelos mit unserem völlig kostenlosen KI-Gesichtstausch-Tool aus!</p></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/de/ai">Mehr anzeigen</a></div></div></div><div class="phpgenera_Details_mainR4"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hotarticle2.png" src="/static/imghw/default1.png" alt="" /><h2>Heißer Artikel</h2></div><div class="phpgenera_Details_mainR4_bottom"><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/1796785841.html" title="Assassin's Creed Shadows: Seashell Riddle -Lösung" class="phpgenera_Details_mainR4_bottom_title">Assassin's Creed Shadows: Seashell Riddle -Lösung</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>4 Wochen vor</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/1796789525.html" title="Was ist neu in Windows 11 KB5054979 und wie Sie Update -Probleme beheben" class="phpgenera_Details_mainR4_bottom_title">Was ist neu in Windows 11 KB5054979 und wie Sie Update -Probleme beheben</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>3 Wochen vor</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/1796785857.html" title="Wo kann man die Kransteuerungsschlüsselkarten in Atomfall finden" class="phpgenera_Details_mainR4_bottom_title">Wo kann man die Kransteuerungsschlüsselkarten in Atomfall finden</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>4 Wochen vor</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/1796784440.html" title="<🎜>: Dead Rails - wie man jede Herausforderung abschließt" class="phpgenera_Details_mainR4_bottom_title"><🎜>: Dead Rails - wie man jede Herausforderung abschließt</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1 Monate vor</span><span>ByDDD</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/1796793874.html" title="Wie kann ich KB5055523 in Windows 11 nicht installieren?" class="phpgenera_Details_mainR4_bottom_title">Wie kann ich KB5055523 in Windows 11 nicht installieren?</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>2 Wochen vor</span><span>ByDDD</span></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/de/article.html">Mehr anzeigen</a></div></div></div><div class="phpgenera_Details_mainR3"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hottools2.png" src="/static/imghw/default1.png" alt="" /><h2>Heiße Werkzeuge</h2></div><div class="phpgenera_Details_mainR3_bottom"><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/toolset/development-tools/1544" title="MinGW – Minimalistisches GNU für Windows" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="" src="/static/imghw/default1.png" alt="MinGW – Minimalistisches GNU für Windows" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/toolset/development-tools/1544" title="MinGW – Minimalistisches GNU für Windows" class="phpmain_tab2_mids_title"><h3>MinGW – Minimalistisches GNU für Windows</h3></a><p>Dieses Projekt wird derzeit auf osdn.net/projects/mingw migriert. Sie können uns dort weiterhin folgen. MinGW: Eine native Windows-Portierung der GNU Compiler Collection (GCC), frei verteilbare Importbibliotheken und Header-Dateien zum Erstellen nativer Windows-Anwendungen, einschließlich Erweiterungen der MSVC-Laufzeit zur Unterstützung der C99-Funktionalität. Die gesamte MinGW-Software kann auf 64-Bit-Windows-Plattformen ausgeführt werden.</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/toolset/development-tools/502" title="ZendStudio 13.5.1 Mac" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d3631514435840.png" src="/static/imghw/default1.png" alt="ZendStudio 13.5.1 Mac" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/toolset/development-tools/502" title="ZendStudio 13.5.1 Mac" class="phpmain_tab2_mids_title"><h3>ZendStudio 13.5.1 Mac</h3></a><p>Leistungsstarke integrierte PHP-Entwicklungsumgebung</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/toolset/development-tools/1527" title="VSCode Windows 64-Bit-Download" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/5e2151b57e8e3927.png" src="/static/imghw/default1.png" alt="VSCode Windows 64-Bit-Download" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/toolset/development-tools/1527" title="VSCode Windows 64-Bit-Download" class="phpmain_tab2_mids_title"><h3>VSCode Windows 64-Bit-Download</h3></a><p>Ein kostenloser und leistungsstarker IDE-Editor von Microsoft</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/toolset/development-tools/1545" title="SAP NetWeaver Server-Adapter für Eclipse" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/007/169165990824460.png" src="/static/imghw/default1.png" alt="SAP NetWeaver Server-Adapter für Eclipse" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/toolset/development-tools/1545" title="SAP NetWeaver Server-Adapter für Eclipse" class="phpmain_tab2_mids_title"><h3>SAP NetWeaver Server-Adapter für Eclipse</h3></a><p>Integrieren Sie Eclipse mit dem SAP NetWeaver-Anwendungsserver.</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/toolset/development-tools/510" title="PHPStorm Mac-Version" class="phpmain_tab2_mids_top_img"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d377b7b49ae828.jpg" src="/static/imghw/default1.png" alt="PHPStorm Mac-Version" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/toolset/development-tools/510" title="PHPStorm Mac-Version" class="phpmain_tab2_mids_title"><h3>PHPStorm Mac-Version</h3></a><p>Das neueste (2018.2.1) professionelle, integrierte PHP-Entwicklungstool</p></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/de/ai">Mehr anzeigen</a></div></div></div><div class="phpgenera_Details_mainR4"><div class="phpmain1_4R_readrank"><div class="phpmain1_4R_readrank_top"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" class="lazy" data-src="/static/imghwm/hotarticle2.png" src="/static/imghw/default1.png" alt="" /><h2>Heiße Themen</h2></div><div class="phpgenera_Details_mainR4_bottom"><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/gmailyxdlrkzn" title="Wo ist der Login-Zugang für Gmail-E-Mail?" class="phpgenera_Details_mainR4_bottom_title">Wo ist der Login-Zugang für Gmail-E-Mail?</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>7716</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>15</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/java-tutorial" title="Java-Tutorial" class="phpgenera_Details_mainR4_bottom_title">Java-Tutorial</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1641</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>14</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/cakephp-tutor" title="CakePHP-Tutorial" class="phpgenera_Details_mainR4_bottom_title">CakePHP-Tutorial</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1395</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>52</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/laravel-tutori" title="Laravel-Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel-Tutorial</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1289</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>25</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/de/faq/php-tutorial" title="PHP-Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP-Tutorial</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/eyess.png" src="/static/imghw/default1.png" alt="" /><span>1232</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img class="lazy" data-src="/static/imghwm/tiezi.png" src="/static/imghw/default1.png" alt="" /><span>29</span></div></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/de/faq/zt">Mehr anzeigen</a></div></div></div></div></main><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><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!</p></div><div class="footermid"><a href="https://m.php.cn/de/about/us.html">Über uns</a><a href="https://m.php.cn/de/about/disclaimer.html">Haftungsausschluss</a><a href="https://m.php.cn/de/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><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><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> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '9']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </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><script>// 通用函数,用于显示或隐藏元素 function toggleElementsDisplay(className, show) { const elements = document.getElementsByClassName(className); for (let i = 0; i < elements.length; i++) { elements[i].style.display = show ? "block" : "none"; } } // 页面加载完成后执行的主函数 document.addEventListener("DOMContentLoaded", () => { // 1. 绑定菜单按钮事件 const bindMenuEvents = () => { const toggleDisplay = (className, show, eventId) => { const element = document.getElementById(eventId); if (element) { element.addEventListener("click", (event) => { event.preventDefault(); toggleElementsDisplay(className, show); }); } }; toggleDisplay("m_editormain12main", true, "fixed_tab_img"); toggleDisplay("m_editormain12main", false, "fixed_tab_topi"); toggleDisplay("m_editormain12main", false, "fixed_tab_close"); toggleDisplay("m_menu", true, "lan1sp"); toggleDisplay("m_menu", false, "m_editormain12main_topi_sp"); toggleDisplay("m_menu_lang", true, "lan1"); toggleDisplay("m_menu_lang", false, "m_editormain12main_topi_lan"); }; // 2. 绑定滚动链接事件 const bindScrollLinks = () => { const titleList = document.getElementById("fixed_tab_titlelist"); const menuMain = document.getElementsByClassName("m_editormain12main")[0]; const links = document.querySelectorAll('.fixed_tab_a'); links.forEach(linkElement => { if (linkElement) { linkElement.addEventListener("click", async (e) => { e.preventDefault(); e.stopPropagation(); // 先隐藏菜单 if (menuMain) menuMain.style.display = "none"; if (titleList) titleList.style.display = "none"; // 获取目标元素的 ID const targetId = linkElement.getAttribute('href').substring(1); const targetElement = document.getElementById(targetId); // 等待 DOM 更新 await new Promise(resolve => requestAnimationFrame(resolve)); // 滚动到目标位置 if (targetElement) { targetElement.scrollIntoView({ behavior: "smooth", block: "start" }); } }); } }); }; // 3. 绑定关闭按钮事件 const bindCloseButton = () => { const closeButton = document.querySelector(".phpgenera_Details_mainR1_close"); const container = document.querySelector(".phpgenera_Details_mainR1"); if (closeButton && container) { closeButton.addEventListener("click", (event) => { event.preventDefault(); container.style.display = "none"; }); } }; // 4. 初始化菜单交互功能 const initMenuInteraction = () => { const menuGroupElements = document.querySelectorAll('.layui-menu-item-group'); menuGroupElements.forEach(menuItem => { menuItem.addEventListener('click', function(event) { if (event.target.closest('.m_menusnames')) { return; } this.classList.toggle('layui-menu-item-down'); this.classList.toggle('layui-menu-item-up'); const subMenuContainer = this.querySelector('.m_menusnames'); const icon = this.querySelector('.layui-icon'); if (subMenuContainer && icon) { if (this.classList.contains('layui-menu-item-down')) { subMenuContainer.style.display = 'block'; icon.classList.remove('layui-icon-down'); icon.classList.add('layui-icon-up'); } else { subMenuContainer.style.display = 'none'; icon.classList.remove('layui-icon-up'); icon.classList.add('layui-icon-down'); } } }); }); }; // 5. 初始化 layui 功能 const initLayui = () => { if (typeof layui !== 'undefined') { layui.use(function () { var util = layui.util; if (util && util.fixbar) { util.fixbar({ on: { mouseenter: function (type) { if (layer && layer.tips) { layer.tips(type, this, { tips: 4, fixed: true, }); } }, mouseleave: function (type) { if (layer && layer.closeAll) { layer.closeAll("tips"); } }, }, }); } }); } }; // 执行所有初始化函数 bindMenuEvents(); bindScrollLinks(); bindCloseButton(); initMenuInteraction(); initLayui(); }); </script></body></html>