8.25. Foundation switch

发布时间 :2024-03-18 23:00:02 UTC      

The switch is switched in the “On” and “Off” states with a mouse click (finger tap):

切换开关使用 <div class="switch"> 创建。 <div> 内添加带有唯一 id 的 <input type="checkbox"> <label> 元素的 for 属性需要与 <input type="checkbox"> 的 id 相匹配:

8.25.1. Example

<div class="switch">
  <input id="mySwitch" type="checkbox">
  <label for="mySwitch"></label>
</div>

尝试一下 »

Switch size

使用 .large , .small .tiny 类来设置开关大小:

8.25.2. Example

<div class="switch large">...</div>
<div class="switch">...</div>
<div class="switch small">...</div>
<div class="switch tiny">...</div>

尝试一下 »

Fillet switch

Use .radius And .round Class to set the fillet switch:

8.25.3. Example

<div class="switch">...</div>
<div class="switch radius">...</div>
<div class="switch round">...</div>

尝试一下 »

Switch group

You can set a single option by setting the radio button (radio). 注意: Pay attention to the name Property must be consistent (“myGroup” in the instance).

8.25.4. Example

<div class="switch">
  <input id="mySwitch1" type="radio" name="myGroup">
  <label for="mySwitch1"></label>
</div>
<div class="switch">
  <input id="mySwitch2" type="radio" name="myGroup" checked>
  <label for="mySwitch2"></label>
</div>

尝试一下 »

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.