<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="style.css">
		<link rel="stylesheet" href="https://uzi666.top/shopline_admin_statuc/css/layui/css/layui.css">
		<script src="app/js/echarts.min.js"></script>
		<title>Dashboard</title>
		<style>
		.bOCQwB {
			padding: 2rem 0px;
			background: rgb(51, 51, 51);
			border-radius: 3px;
			color: rgb(255, 255, 255);
			display: flex;
			place-content: center space-around;
			height: 10rem;
		}
		.dEyqWV {
		    min-width: 210.214px;
		    width: 210.214px;
		    padding: 1.6rem;
		    border-bottom: 0.1rem solid rgb(244, 246, 248);
		    background: rgb(255, 255, 255);
		    white-space: nowrap;
		}
		.clrCal {
		    min-width: 314.667px;
		    width: 314.667px;
		    border-bottom: 0.1rem solid rgb(196, 205, 213);
		    border-top: 0.1rem solid rgb(223, 227, 232);
		    padding: 1.6rem;
		    background: rgb(255, 255, 255);
		    white-space: nowrap;
		}
		.cAbmHr > * {
		    transition: background-color 0.2s ease-in-out 0s;
		}
		.cxQEXx {
		    min-width: 157.333px;
		    width: 157.333px;
		    border-bottom: 0.1rem solid rgb(196, 205, 213);
		    border-top: 0.1rem solid rgb(223, 227, 232);
		    padding: 1.6rem;
		    background: rgb(255, 255, 255);
		    white-space: nowrap;
		}
		.bfqBUk {
			padding: 1rem;
			width: 100%;
			display: flex;
			flex-direction: column;
			-webkit-box-pack: center;
			place-content: center;
			text-align: center;
}
<p>.bfqBUk:not(:first-child) {
border-left: 1px solid rgb(255, 255, 255);
}</p>
<pre><code>	/* 下拉列表容器的样式 */
	.dropdown {
	  position: relative;
	  display: inline-block;
	}

	/* 下拉列表的样式 */
	.dropdown-content {
	  margin-top: 5px;
	  display: none;
	  position: absolute;
	  top: 100%; /* 将下拉列表放置在按钮下方 */
	  left: 0; /* 将下拉列表与按钮左对齐 */
	  background-color: #f9f9f9;
	  width: 100px; /* 设置下拉列表的宽度为200px */
	  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	  z-index: 1;
	}

	/* 下拉列表中的选项样式 */
	.dropdown-content a {
	  color: black;
	  padding: 12px 16px;
	  text-decoration: none;
	  display: block;
	}

	/* 鼠标悬停时选项的背景色 */
	.dropdown-content a:hover {
	  background-color: #f1f1f1;
	}


	&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	
	&lt;div class=&quot;Polaris-Stack Polaris-Stack--distributionEqualSpacing Polaris-Stack--alignmentCenter&quot; style=&quot;margin-top: 1px;border-bottom: 1px #c1c1c1 solid;padding: 5px;&quot;&gt;
		&lt;div class=&quot;Polaris-Stack__Item&quot;&gt;
			&lt;div class=&quot;Polaris-Stack Polaris-Stack--spacingTight Polaris-Stack--alignmentCenter&quot;&gt;
				&lt;div class=&quot;Polaris-Stack__Item&quot;&gt;
					&lt;div class=&quot;sc-1ibht3l-0 uqRZq&quot;&gt;

					&lt;/div&gt;
					&lt;div class=&quot;sc-1ibht3l-1 hIZedH&quot;&gt;
						&lt;div class=&quot;Polaris-ButtonGroup&quot;&gt;
							&lt;div class=&quot;Polaris-ButtonGroup__Item&quot;&gt;
								&lt;a data-polaris-unstyled=&quot;true&quot; class=&quot;Polaris-Button&quot; data-href=&quot;index.html&quot;&gt;
									&lt;span class=&quot;Polaris-Button__Content&quot;&gt;
										&lt;span class=&quot;Polaris-Button__Text&quot;&gt;Dashboard&lt;/span&gt;
									&lt;/span&gt;
								&lt;/a&gt;
							&lt;/div&gt;

							&lt;div class=&quot;Polaris-ButtonGroup__Item&quot;&gt;
								&lt;a data-polaris-unstyled=&quot;true&quot; class=&quot;Polaris-Button&quot; data-href=&quot;zone.html&quot;&gt;
									&lt;span class=&quot;Polaris-Button__Content&quot;&gt;
										&lt;span class=&quot;Polaris-Button__Text&quot;&gt;Checkout Zones&lt;/span&gt;
									&lt;/span&gt;
								&lt;/a&gt;
							&lt;/div&gt;
							&lt;div class=&quot;Polaris-ButtonGroup__Item&quot;&gt;
								&lt;a data-polaris-unstyled=&quot;true&quot; class=&quot;Polaris-Button&quot; data-href=&quot;funnel.html&quot;&gt;
									&lt;span class=&quot;Polaris-Button__Content&quot;&gt;
										&lt;span class=&quot;Polaris-Button__Text&quot;&gt;Funnels&lt;/span&gt;
									&lt;/span&gt;
								&lt;/a&gt;
							&lt;/div&gt;
							&lt;div class=&quot;Polaris-ButtonGroup__Item&quot;&gt;
								&lt;a data-polaris-unstyled=&quot;true&quot; class=&quot;Polaris-Button&quot; data-href=&quot;help.html&quot;&gt;
									&lt;span class=&quot;Polaris-Button__Content&quot;&gt;
										&lt;span class=&quot;Polaris-Button__Text&quot;&gt;Help Center&lt;/span&gt;
									&lt;/span&gt;
								&lt;/a&gt;
							&lt;/div&gt;
							&lt;div class=&quot;Polaris-ButtonGroup__Item&quot;&gt;
								&lt;div&gt;
									&lt;button type=&quot;button&quot; id=&quot;moreSeting&quot; class=&quot;Polaris-Button&quot; tabindex=&quot;0&quot; aria-controls=&quot;Popover486&quot; aria-owns=&quot;Popover486&quot; aria-haspopup=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;
										&lt;span class=&quot;Polaris-Button__Content&quot;&gt;
											&lt;span class=&quot;Polaris-Button__Text&quot;&gt;More&lt;/span&gt;
											&lt;span class=&quot;Polaris-Button__Icon&quot;&gt;
												&lt;span class=&quot;Polaris-Icon&quot;&gt;
													&lt;svg viewBox=&quot;0 0 20 20&quot; class=&quot;Polaris-Icon__Svg&quot; focusable=&quot;false&quot; aria-hidden=&quot;true&quot;&gt;
														&lt;path d=&quot;M5 8l5 5 5-5z&quot; fill-rule=&quot;evenodd&quot;&gt;&lt;/path&gt;
													&lt;/svg&gt;
												&lt;/span&gt;
											&lt;/span&gt;
										&lt;/span&gt;
										&lt;div id=&quot;dropdownContent&quot; class=&quot;dropdown-content&quot;&gt;
										  &lt;!-- 这里放下拉列表的内容 --&gt;
										  &lt;a data-href=&quot;payment.html&quot;&gt;Payment&lt;/a&gt;
										  &lt;a data-href=&quot;facebookPixel.html&quot;&gt;Pixel&lt;/a&gt;
										&lt;/div&gt;
									&lt;/button&gt;

								&lt;/div&gt;
							&lt;/div
</code></pre>
我现在是重新加载新的html加载html无感加载怎么实现修改要求:使用Ajax异步加载HTML内容并替换主体内容。首先需要修改HTML的结构将所有导航按钮的href属性更改为data-href或其他自定义属性名称。然后使用JavaScriptjQuery为导航按钮添加点击事件使用Ajax异步加载HTML内容下面是我的代码:!DOCTYPE htmlhtml	head		meta charset=u

原文地址: http://www.cveoy.top/t/topic/imLi 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录