検索
ホームページTechnical ResourcesHTMLにおけるアプレットタグの役割
HTMLにおけるアプレットタグの役割

HTMLにおけるアプレットタグの役割

HTML におけるアプレット タグの役割: 埋め込みアプレットを定義するために使用されます。 HTML タグについて詳しく知りたい場合は、このトピックの下にある記事を参照してください。

81
12

HTMLにおけるアプレットタグの役割

HTMLアプレットタグの使い方

HTMLアプレットタグの使い方

HTML アプレット タグは、埋め込みアプレットを定義するために使用されます。 は一部のブラウザにまだ存在しますが、動作するには追加のプラグインとインストール プロセスが必要です。

May 25, 2019 pm 01:37 PM
HTML アプレット タグは何を意味しますか? HTMLアプレットタグの使い方を詳しく解説

HTML アプレット タグは何を意味しますか? HTMLアプレットタグの使い方を詳しく解説

HTML アプレット タグは何を意味しますか? HTML アプレット タグの使い方を詳しく説明します。この記事では、HTML アプレット タグの定義と具体的な使い方、および HTML アプレット タグの属性について説明します。

Aug 18, 2018 pm 05:16 PM

Java はどのようにしてアプレットを実行するのでしょうか?アプレットを実行する 2 つの方法

Java はどのようにしてアプレットを実行するのでしょうか?アプレットを実行する 2 つの方法

アプレットは小さな動的 Java プログラムですが、アプレットを実行するにはどうすればよいでしょうか?この記事では、アプレットについて紹介し、アプレットとは何か、およびアプレットの実行方法について説明します。

Dec 24, 2018 pm 02:06 PM

HTMLタグのグローバル属性を理解する

HTMLタグのグローバル属性を理解する

HTML グローバル属性は、HTML 要素に適用できる一般的な属性を指し、特定の HTML 要素だけでなく、すべての HTML 要素にも適用できます。グローバル プロパティは、HTML の外観と動作を制御する統一された方法を開発者に提供し、HTML 要素間の一貫性とスケーラビリティを高めます。一般的なグローバル属性には次のものがあります。 class: 要素の 1 つ以上の CSS クラス名を指定するために使用され、CSS スタイル シートを通じて要素の外観を装飾できます。 id: 要素に使用されます

Feb 18, 2024 pm 12:34 PM

一般的な HTML タグ

一般的な HTML タグ

一般的な HTML タグは次のとおりです: 1. : HTML ドキュメントのルート要素を定義します; 2. : タイトル、スタイル、スクリプトなどの HTML ドキュメントのメタデータが含まれます; 3. : タイトルを定義しますHTML ドキュメントの ; 4. <meta>: 文字セット、作成者、キーワードなどの HTML ドキュメントのメタデータを定義します; 5. <style>: HTML ドキュメントのスタイルを定義します; 6. <script> :HTML文書などのスクリプトを定義します。</p><span class="Articlelist_txts_time">Nov 01, 2023 am 10:44 AM</span><div class="Articlelist_txts_infos"><a href="https://m.php.cn/ja/search?word=htmlタグ"><span class="Articlelist_txts_infoss on">htmlタグ</span></a></div></div></div><hr /><div class="Articlelist_txts"><a href="https://m.php.cn/ja/faq/631024.html" title="HTML タグの完全なコレクション" class="Articlelist_txtsimg"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/202311/27/2023112709552750910.jpg?x-oss-process=image/resize,m_fill,h_135,w_240" class="lazy" alt="HTML タグの完全なコレクション" /></a><div class="Articlelist_txts_info"><h3><a href="https://m.php.cn/ja/faq/631024.html" title="HTML タグの完全なコレクション" class="Articlelist_txts_title">HTML タグの完全なコレクション</a></h3><p class="Articlelist_txts_p">HTML标签有<!DOCTYPE>、<html>、<head>、<title>、<meta>、<link>、<style>、<script>、<body>、<h1> - <h6>、<p >、<a>、<img>、<div>、<span>、<input>、<button>、<form</p><span class="Articlelist_txts_time">Nov 27, 2023 am 10:05 AM</span><div class="Articlelist_txts_infos"><a href="https://m.php.cn/ja/search?word=html"><span class="Articlelist_txts_infoss on">html</span></a><a href="https://m.php.cn/ja/search?word=htmlタグ"><span class="Articlelist_txts_infoss ">htmlタグ</span></a></div></div></div><hr /><div class="Articlelist_txts"><a href="https://m.php.cn/ja/faq/601968.html" title="HTMLタグ" class="Articlelist_txtsimg"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/887/227/169382670559036.jpg?x-oss-process=image/resize,m_fill,h_135,w_240" class="lazy" alt="HTMLタグ" /></a><div class="Articlelist_txts_info"><h3><a href="https://m.php.cn/ja/faq/601968.html" title="HTMLタグ" class="Articlelist_txts_title">HTMLタグ</a></h3><p class="Articlelist_txts_p">HTML の要素は、説明、キーワード、文書作成者などのメタデータを記述するために使用されます。このメタデータはページには表示されませんが、検索エンジンや Web ブラウザーなどによって使用されます。 <metaname="viewport" content="width=device-width,initial-scale=1.0"> でビューポートを設定することで、Web ページのサイズを設定することもできます。プロパティは次のとおりです - Sr.No タイプと説明1 名前属性 名前。何でも構いません。例には、キーワード、説明、作成者、リビジョン、ジェネレーターなどが含まれます。 2 コンテンツは属性の値を指定します。スキーム 3 (非推奨) は以下を指します。</p><span class="Articlelist_txts_time">Sep 04, 2023 pm 07:25 PM</span><div class="Articlelist_txts_infos"><a href="https://m.php.cn/ja/search?word=htmlタグ"><span class="Articlelist_txts_infoss on">htmlタグ</span></a></div></div></div><hr /><div class="Articlelist_txts"><a href="https://m.php.cn/ja/faq/540491.html" title="HTMLタグの使い方" class="Articlelist_txtsimg"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/202305/15/2023051520103691131.jpg?x-oss-process=image/resize,m_fill,h_135,w_240" class="lazy" alt="HTMLタグの使い方" /></a><div class="Articlelist_txts_info"><h3><a href="https://m.php.cn/ja/faq/540491.html" title="HTMLタグの使い方" class="Articlelist_txts_title">HTMLタグの使い方</a></h3><p class="Articlelist_txts_p">HTML (HyperText Markup Language) は、Web ページを作成するための標準言語です。これは、Web ページ内のコンテンツを記述および整理するための一連のタグと属性で構成されます。以下では、一般的に使用されるいくつかの HTML タグとその使用法について説明します。 1. タイトルタグ(<h1>~<h6>) タイトルタグはWebページのタイトルを設定するタグで、大きいものから順に<h1>~<h6>の6段階に分かれています。 Web ページを作成するときは、<h1> が最大である必要があることに注意してください。</p><span class="Articlelist_txts_time">May 15, 2023 pm 08:10 PM</span></div></div><hr /><div class="Articlelist_txts"><a href="https://m.php.cn/ja/faq/540160.html" title="htmlタグは折り返されない" class="Articlelist_txtsimg"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/202305/15/2023051514050714963.jpg?x-oss-process=image/resize,m_fill,h_135,w_240" class="lazy" alt="htmlタグは折り返されない" /></a><div class="Articlelist_txts_info"><h3><a href="https://m.php.cn/ja/faq/540160.html" title="htmlタグは折り返されない" class="Articlelist_txts_title">htmlタグは折り返されない</a></h3><p class="Articlelist_txts_p">HTML タグが折り返されない理由は、HTML のデフォルトの書式設定方法がすべての要素をブロックレベルの要素として扱うためです。つまり、各要素は上下にスペースのある独自の行を占めることになります。ただし、場合によっては、同じ行内に複数の要素を表示する必要があり、要素間に余分な空白を入れたくない場合があります。以下では、HTMLでのラベルの自動折り返しを回避する方法を詳しく紹介します。 1. インライン要素を使用する `<span>` や `<a>` などのインライン特性を持つ要素を使用して、ラベルの自動折り返しを回避します。これは、インライン要素があるためです。</p><span class="Articlelist_txts_time">May 15, 2023 pm 02:05 PM</span></div></div><hr /><div class="Articlelist_txts"><a href="https://m.php.cn/ja/faq/540161.html" title="HTMLタグの定期的な置き換え" class="Articlelist_txtsimg"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/202305/15/2023051514060897385.jpg?x-oss-process=image/resize,m_fill,h_135,w_240" class="lazy" alt="HTMLタグの定期的な置き換え" /></a><div class="Articlelist_txts_info"><h3><a href="https://m.php.cn/ja/faq/540161.html" title="HTMLタグの定期的な置き換え" class="Articlelist_txts_title">HTMLタグの定期的な置き換え</a></h3><p class="Articlelist_txts_p">HTML は Web ページの標準言語ですが、場合によっては、HTML Web ページからプレーン テキストを抽出する必要があります。この場合、HTML タグを置き換えると便利です。この記事では、正規表現を使ってHTMLタグを置き換える方法を紹介します。まず、正規表現とは何でしょうか?正規表現は、文字列を照合するために使用される式です。テキストの検索、置換、抽出に使用できます。正規表現は、プログラミングやテキスト エディターでのテキストの検索など、テキスト処理でよく使用されます。正規表現を使用して HTML タグを置き換える 多くの場合、</p><span class="Articlelist_txts_time">May 15, 2023 pm 02:06 PM</span></div></div><hr /><div class="Articlelist_txts"><a href="https://m.php.cn/ja/faq/545709.html" title="HTMLタグエスケープ" class="Articlelist_txtsimg"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/202305/21/2023052115550861594.jpg?x-oss-process=image/resize,m_fill,h_135,w_240" class="lazy" alt="HTMLタグエスケープ" /></a><div class="Articlelist_txts_info"><h3><a href="https://m.php.cn/ja/faq/545709.html" title="HTMLタグエスケープ" class="Articlelist_txts_title">HTMLタグエスケープ</a></h3><p class="Articlelist_txts_p">Web 開発では、HTML タグまたは要素をよく使用します。これらのタグは通常、テキスト、画像、リンク、表などを含むページ上のコンテンツを説明および表示するために使用されます。ただし、これらのタグを使用する場合は、<、>、& などの特殊文字に注意する必要があります。これらの文字はタグの表示に影響を与えたり、コード エラーを引き起こす可能性があります。この問題を解決するには、HTML タグのエスケープ文字を使用する必要があります。 1. HTMLエスケープとは何ですか? HTML エスケープとは、一部の特殊文字を対応するエンティティ文字またはタグに変換することを指します。</p><span class="Articlelist_txts_time">May 21, 2023 pm 03:55 PM</span></div></div><hr /><div class="Articlelist_txts"><a href="https://m.php.cn/ja/faq/555779.html" title="PHPコード内のHTMLタグを削除する方法" class="Articlelist_txtsimg"><img onerror="this.onerror=''; this.src='/static/imghwm/default1.png'" src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/202306/06/2023060609382461438.jpg?x-oss-process=image/resize,m_fill,h_135,w_240" class="lazy" alt="PHPコード内のHTMLタグを削除する方法" /></a><div class="Articlelist_txts_info"><h3><a href="https://m.php.cn/ja/faq/555779.html" title="PHPコード内のHTMLタグを削除する方法" class="Articlelist_txts_title">PHPコード内のHTMLタグを削除する方法</a></h3><p class="Articlelist_txts_p">PHP で HTML タグを削除する方法は次のとおりです: 1. PHP サンプル ファイルを作成します; 2. HTML タグを持つ文字を格納する変数 $html_string を作成します; 3. "strip_tags($html_string)" 構文を使用してすべての HTML タグを削除し、その内容 文字列から削除; 4. 削除された文字列を echo で出力します。</p><span class="Articlelist_txts_time">Jun 06, 2023 am 11:00 AM</span><div class="Articlelist_txts_infos"><a href="https://m.php.cn/ja/search?word=php"><span class="Articlelist_txts_infoss on">php</span></a></div></div></div><hr /></div><div class="AI_ToolDetails_main4sR"><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'" src="/static/imghwm/hotarticle2.png" alt="" /><h2>人気の記事</h2></div><div class="phpgenera_Details_mainR4_bottom"><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/679836.html" title="HTMLタグのグローバル属性を理解する" class="phpgenera_Details_mainR4_bottom_title">HTMLタグのグローバル属性を理解する</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1年前</span><span>By王林</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/631024.html" title="HTML タグの完全なコレクション" class="phpgenera_Details_mainR4_bottom_title">HTML タグの完全なコレクション</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1年前</span><span>Byzbt</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/624097.html" title="一般的な HTML タグ" class="phpgenera_Details_mainR4_bottom_title">一般的な HTML タグ</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1年前</span><span>Byzbt</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/601968.html" title="HTMLタグ" class="phpgenera_Details_mainR4_bottom_title">HTMLタグ</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1年前</span><span>ByWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB</span></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/555779.html" title="PHPコード内のHTMLタグを削除する方法" class="phpgenera_Details_mainR4_bottom_title">PHPコード内のHTMLタグを削除する方法</a><div class="phpgenera_Details_mainR4_bottoms_info"><span>1年前</span><span>By尊渡假赌尊渡假赌尊渡假赌</span></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ja/article.html">もっと見る</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'" src="/static/imghwm/hottools2.png" alt="" /><h2>ホットツール</h2></div><div class="phpgenera_Details_mainR3_bottom"><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/kits-ai" title="Kits AI" 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'" src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173417754263702.jpg?x-oss-process=image/resize,m_fill,h_45,w_45" class="lazy" alt="Kits AI" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/kits-ai" title="Kits AI" class="phpmain_tab2_mids_title"><h3>Kits AI</h3></a><p>AI アーティストの声であなたの声を変換します。独自の AI 音声モデルを作成してトレーニングします。</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/soundraw-ai-music-generator" title="SOUNDRAW - AI Music Generator" 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'" src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173417756684210.jpeg?x-oss-process=image/resize,m_fill,h_45,w_45" class="lazy" alt="SOUNDRAW - AI Music Generator" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/soundraw-ai-music-generator" title="SOUNDRAW - AI Music Generator" class="phpmain_tab2_mids_title"><h3>SOUNDRAW - AI Music Generator</h3></a><p>SOUNDRAW の AI 音楽ジェネレーターを使用して、ビデオや映画などの音楽を簡単に作成できます。</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/web-chatgptai" title="Web ChatGPT.ai" 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'" src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173399378227633.jpg?x-oss-process=image/resize,m_fill,h_45,w_45" class="lazy" alt="Web ChatGPT.ai" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/web-chatgptai" title="Web ChatGPT.ai" class="phpmain_tab2_mids_title"><h3>Web ChatGPT.ai</h3></a><p>効率的なブラウジングのためのOpenAIチャットボット付きの無料クロム拡張機能。</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/ai-hay" title="AI Hay" 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'" src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/ai_manual/001/246/273/174580374818781.jpg?x-oss-process=image/resize,m_fill,h_45,w_45" class="lazy" alt="AI Hay" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/ai-hay" title="AI Hay" class="phpmain_tab2_mids_title"><h3>AI Hay</h3></a><p>ベトナムの最初のAI回答エンジン:正確で信頼性が高く、常に最新です。何百万人ものベトナム人の学生に愛されています</p></div></div><div class="phpmain_tab2_mids_top"><a href="https://m.php.cn/ja/ai/learn-earth" title="Learn Earth" 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'" src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/ai_manual/001/246/273/174580371949328.jpg?x-oss-process=image/resize,m_fill,h_45,w_45" class="lazy" alt="Learn Earth" /></a><div class="phpmain_tab2_mids_info"><a href="https://m.php.cn/ja/ai/learn-earth" title="Learn Earth" class="phpmain_tab2_mids_title"><h3>Learn Earth</h3></a><p>パーソナライズされた教育のためのAI駆動型の適応学習プラットフォーム。</p></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ja/ai">もっと見る</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'" src="/static/imghwm/hotarticle2.png" alt="" /><h2>ホットトピック</h2></div><div class="phpgenera_Details_mainR4_bottom"><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/postmessagesy" title="ポストメッセージの使い方" class="phpgenera_Details_mainR4_bottom_title">ポストメッセージの使い方</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/eyess.png" alt="" /><span>161</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/tiezi.png" alt="" /><span>5</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/cjdtomcatr" title="Tomcat の一般的な脆弱性は何ですか?" class="phpgenera_Details_mainR4_bottom_title">Tomcat の一般的な脆弱性は何ですか?</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/eyess.png" alt="" /><span>138</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/tiezi.png" alt="" /><span>5</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/qyerpxt" title="エンタープライズ erp システムとは何ですか?" class="phpgenera_Details_mainR4_bottom_title">エンタープライズ erp システムとは何ですか?</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/eyess.png" alt="" /><span>116</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/tiezi.png" alt="" /><span>6</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/nohupmlyxhgbf" title="nohupコマンド実行後にシャットダウンする方法" class="phpgenera_Details_mainR4_bottom_title">nohupコマンド実行後にシャットダウンする方法</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/eyess.png" alt="" /><span>127</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/tiezi.png" alt="" /><span>5</span></div></div></div><div class="phpgenera_Details_mainR4_bottoms"><a href="https://m.php.cn/ja/faq/syssm" title="インデックスとは何ですか" class="phpgenera_Details_mainR4_bottom_title">インデックスとは何ですか</a><div class="phpgenera_Details_mainR4_bottoms_info"><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/eyess.png" alt="" /><span>188</span></div><div class="phpgenera_Details_mainR4_bottoms_infos"><img src="/static/imghwm/tiezi.png" alt="" /><span>5</span></div></div></div></div><div class="phpgenera_Details_mainR3_more"><a href="https://m.php.cn/ja/faq/zt">もっと見る</a></div></div></div></div></main><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!</p></div><div class="footermid"><a href="https://m.php.cn/ja/about/us.html">私たちについて</a><a href="https://m.php.cn/ja/about/disclaimer.html">免責事項</a><a href="https://m.php.cn/ja/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><!-- Matomo --><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><!-- End Matomo Code --><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"; } } // 绑定事件监听器 function bindEventListeners() { const toggleDisplay = (className, show, eventId) => { document.getElementById(eventId).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"); // 控制 m_menu 的显示和隐藏 toggleDisplay("m_menu", true, "lan1sp"); toggleDisplay("m_menu", false, "m_editormain12main_topi_sp"); // 控制 m_menu_lang 的显示和隐藏 toggleDisplay("m_menu_lang", true, "lan1"); toggleDisplay("m_menu_lang", false, "m_editormain12main_topi_lan"); } // 在页面加载完成后绑定事件监听器 window.onload = bindEventListeners; layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); // 获取关闭按钮 const closeButton = document.querySelector(".phpgenera_Details_mainR1_close"); // 获取容器元素 const container = document.querySelector(".phpgenera_Details_mainR1"); // 添加点击事件监听器 closeButton.addEventListener("click", (event) => { event.preventDefault(); // 阻止默认的<a>点击行为 container.style.display = "none"; // 隐藏容器 }); document.addEventListener("DOMContentLoaded", () => { // 动态获取所有滚动链接及隐藏目标元素 const links = [{ linkId: "fixed_tab_a1", targetId: "Topic_Details_mainL2_R_title1", hideElementId: "fixed_tab_titlelist", // 要隐藏的元素 ID }, { linkId: "fixed_tab_a2", targetId: "Topic_Details_mainL2_R_title2", hideElementId: "fixed_tab_titlelist", // 要隐藏的元素 ID }, { linkId: "fixed_tab_a3", targetId: "Topic_Details_mainL2_R_title3", hideElementId: "fixed_tab_titlelist", // 要隐藏的元素 ID }, ]; links.forEach(({ linkId, targetId, hideElementId }) => { const linkElement = document.getElementById(linkId); const targetElement = document.getElementById(targetId); const hideElement = document.getElementById(hideElementId); if (linkElement && targetElement) { linkElement.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认行为 // 隐藏指定元素 if (hideElement) { hideElement.style.display = "none"; } // 平滑滚动到目标元素 targetElement.scrollIntoView({ behavior: "smooth" }); }); } else { console.warn( `Link, target, or hide element not found: ${linkId}, ${targetId}, ${hideElementId}` ); } }); }); </script></body></html>