Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-maximum-upload-file-size domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6121) in /var/www/html/wp-includes/feed-rss2.php on line 8 首页 – 乡春智农云 http://www.xcag.net 乡春智农云 Fri, 13 Jan 2023 03:35:54 +0000 zh-Hans hourly 1 https://wordpress.org/?v=6.8.1 Modal http://www.xcag.net/?p=393 Fri, 13 Jan 2023 03:32:03 +0000 http://www.xcag.net/?p=393 Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.

On this page


How it works 

Before getting started with Bootstrap’s modal component, be sure to read the following as our menu options have recently changed.

  • Modals are built with HTML, CSS, and JavaScript. They’re positioned over everything else in the document and remove scroll from the <body> so that modal content scrolls instead.
  • Clicking on the modal “backdrop” will automatically close the modal.
  • Bootstrap only supports one modal window at a time. Nested modals aren’t supported as we believe them to be poor user experiences.
  • Modals use position: fixed, which can sometimes be a bit particular about its rendering. Whenever possible, place your modal HTML in a top-level position to avoid potential interference from other elements. You’ll likely run into issues when nesting a .modal within another fixed element.
  • Once again, due to position: fixed, there are some caveats with using modals on mobile devices. See our browser support docs for details.
  • Due to how HTML5 defines its semantics, the autofocus HTML attribute has no effect in Bootstrap modals. To achieve the same effect, use some custom JavaScript:
const myModal = document.getElementById('myModal')
const myInput = document.getElementById('myInput')

myModal.addEventListener('shown.bs.modal', () => {
  myInput.focus()
})

The animation effect of this component is dependent on the prefers-reduced-motion media query. See the reduced motion section of our accessibility documentation.

Keep reading for demos and usage guidelines.

]]>
主要功能 http://www.xcag.net/?p=385 Fri, 13 Jan 2023 03:11:57 +0000 http://www.xcag.net/?p=385 APP实现电子临时乘车身份证明 http://www.xcag.net/?p=380 Fri, 13 Jan 2023 03:01:02 +0000 http://www.xcag.net/?p=380 铁路12306”是中国铁路客户服务 http://www.xcag.net/?p=377 Fri, 13 Jan 2023 02:59:32 +0000 http://www.xcag.net/?p=377 铁路部门统筹疫情防控精准要求和旅客便捷出行需求 http://www.xcag.net/?p=374 Fri, 13 Jan 2023 02:58:22 +0000 http://www.xcag.net/?p=374 智能工厂解决方案 http://www.xcag.net/?p=358 Fri, 13 Jan 2023 02:15:49 +0000 http://www.xcag.net/?p=358 a标签href不跳转 禁止跳转

当页面中a标签不需要任何跳转时,从原理上来讲,可分如下两种方法:当页面中a标签不需要任何跳转时,从原理上来讲,可分如下两种方法:当页面中a标签不需要任何跳转时,从原理上来讲,可分如下两种方法:当页面中a标签不需要任何跳转时,从原理上来讲,可分如下两种方法:

  1. 标签属性href,使其指向空或不返回任何内容。如:<a href=”javascript:void(0);” >点此无反应javascript:void(0)</a><a href=”javascript:;” >点此无反应javascript:</a>
  2. 标签事件onclick,阻止其默认行为。如:<a href=”” οnclick=”return false;”>return false;</a><a href=”#” οnclick=”return false;”>return false;</a>

注意:只有一个href=”#”是不可以的。

原理:

  1. 标签属性href=”javascript:void(0);” 关键是理解void(0)的含义。

javascript中void是一个操作符,该操作符指定要计算一个表达式但是不返回值

用法格式如下:

a). javascript:void (expression)

b). javascript:void expression

你以使用 void 操作符指定超级链接。表达式会被计算但是不会当前文档处装入任何内容。所以,javascript:void(0) 仅仅表示一个死链接。

只有href=”#”是不可以的,因为#包含了一个位置信息,默认的锚是#top 也就是网页的上端。我理解的锚是指网页中具体位置。

例如:

首先我们在网页body内最上面添加一个<span id=”top” name=”top”></span>

我们再到body内,需要出现点击后转到顶部位置添加,<a href=”#top”>回到顶部</a>

点击回到顶部即可让滚动回到顶部。

  1. 标签事件οnclick=”return false;” 在HTML代码中,无论你在哪里放置了onclick事件,并且返回值为false时,那么该处的默认行为将不会执行。这里的默认行为是指没有Onclick事件时原本的行为。

最后,我们来回顾下a标签的三种用法:

]]>
画廊4 http://www.xcag.net/?p=169 http://www.xcag.net/?p=169#respond Fri, 06 Jan 2023 07:25:46 +0000 http://www.xcag.net/?p=169
]]>
http://www.xcag.net/?feed=rss2&p=169 0
画廊3 http://www.xcag.net/?p=166 http://www.xcag.net/?p=166#respond Fri, 06 Jan 2023 07:25:25 +0000 http://www.xcag.net/?p=166 ]]> http://www.xcag.net/?feed=rss2&p=166 0 画廊2 http://www.xcag.net/?p=163 http://www.xcag.net/?p=163#respond Fri, 06 Jan 2023 07:24:55 +0000 http://www.xcag.net/?p=163 ]]> http://www.xcag.net/?feed=rss2&p=163 0 画廊1 http://www.xcag.net/?p=160 http://www.xcag.net/?p=160#respond Fri, 06 Jan 2023 07:24:18 +0000 http://www.xcag.net/?p=160 ]]> http://www.xcag.net/?feed=rss2&p=160 0