Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 一级看片免费视频囗交,国产玖玖在线观看,亚洲春色第一页

          整合營銷服務(wù)商

          電腦端+手機端+微信端=數(shù)據(jù)同步管理

          免費咨詢熱線:

          9個鼠標懸停圖片遮罩,高亮動畫特效,html頁面源碼

          家好,今天給大家介紹一款, 一組9個鼠標懸停圖片高亮動畫特效html頁面源碼,(圖1)。送給大家哦,獲取方式在本文末尾。

          圖1

          鼠標經(jīng)過圖片上方就會有相應(yīng)的特效(圖2)

          圖2

          源碼完整,需要的朋友可以下載學習(圖3)

          圖3

          本源碼編碼:10178,需要的朋友,點擊下面的鏈接后,搜索10178,即可獲取。

          就愛UI - 分享UI設(shè)計的點點滴滴



          tml

          <!DOCTYPE html>

          <html>

          <head>

          <meta charset="utf-8">

          <title>點擊彈窗遮罩</title>

          </head>

          <body>

          <button id="btn">點擊</button>

          <!-- 遮罩 -->

          <div class="cover" id="cover"></div>

          <!-- 彈框 -->

          <div class="grid" id="grid_box">

          <span class="grid_close">x</span>

          <h3>標題</h3>

          <div>hahaha</div>

          </div>

          </body>

          </html>

          css

          <style type="text/css">

          .cover{

          display: none;

          position: fixed;

          width:100%;

          height:100%;

          z-index:2;

          background: rgba(102,102,102,0.7);

          top:0;

          left:0;

          }

          .grid{

          display: none;

          position: fixed;

          z-index: 3;

          width: 500px;

          min-height: 300px;

          top:50%;

          left:50%;

          margin: -150px 0 0 -250px;

          background: #fff;

          padding: 15px;

          border-radius:10px;

          }

          .grid_close{

          background: #fff;

          float:right;

          }

          </style>

          js

          <script type="text/javascript">

          var Btn = document.getElementById('btn'),

          Cover = document.getElementById('cover'),

          Box = document.getElementById('grid_box'),

          GridClose = Box.getElementsByClassName('grid_close')[0];

          //點擊彈出彈窗

          Btn.onclick =function(){

          ShowHide(true,Cover,Box);

          }

          //點擊關(guān)閉按鈕關(guān)閉彈窗

          GridClose.onclick=function(){

          ShowHide(false,Cover,Box);

          }

          //點擊遮罩空白關(guān)閉彈窗

          Cover.onclick=function(){

          ShowHide(false,Cover,Box);

          }

          //關(guān)閉公用方法

          function ShowHide(Bool,item1,item2){

          for (var i = 1,len=arguments.length; i<len; i++) {

          if (Bool) {

          arguments[i].style.display="block";

          }else{

          arguments[i].style.display="none";

          }

          }

          }

          </script>

          間如流水,只能流去不流回!

          點贊再看,養(yǎng)成習慣,這是您給我創(chuàng)作的動力!

          本文 Dotnet9 https://dotnet9.com 已收錄,站長樂于分享dotnet相關(guān)技術(shù),比如Winform、WPF、ASP.NET Core、Xamarin.Forms等,亦有C++桌面相關(guān)的Qt Quick和Qt Widgets等,只分享自己熟悉的、自己會的。

          閱讀導航:

          • 一、先看效果
          • 二、本文背景
          • 三、代碼實現(xiàn)
          • 四、文章參考
          • 五、代碼下載

          一、先看效果

          二、本文背景

          YouTube Design com WPF 大神處習得,常用的遮罩對話框?qū)崿F(xiàn),使用的開源 C# WPF控件庫 MaterialDesignInXAML ,本站曾有介紹:開源C# WPF控件庫《MaterialDesignInXAML》。

          三、代碼實現(xiàn)

          3.1 添加Nuget庫

          站長使用.Net Core 3.1創(chuàng)建的WPF工程,創(chuàng)建“ScreenOverlayMessage”解決方案后,需要添加兩個Nuget庫:MaterialDesignThemes和MaterialDesignColors,上圖的效果是使用該控件庫實現(xiàn)的,非常強大。

          3.2 工程結(jié)構(gòu)

          不需要截圖,只修改了兩個文件,App.xaml添加MD控件4個樣式文件,MainWindow主窗口實現(xiàn)效果。

          3.3 App.xaml引入MD控件樣式

          <Application x:Class="DropDownMenu.App"
                       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                       xmlns:local="clr-namespace:DropDownMenu"
                       StartupUri="MainWindow.xaml">
              <Application.Resources>
                  <ResourceDictionary>
                      <ResourceDictionary.MergedDictionaries>
                          <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml"/>
                          <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml"/>
                          <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Blue.xaml"/>
                          <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Indigo.xaml"/>
                      </ResourceDictionary.MergedDictionaries>
                  </ResourceDictionary>
              </Application.Resources>
          </Application>

          3.4 主窗體

          MainWindow.xaml,整體布局,看上圖加上下面的界面代碼,添加界面左上角logo圖標、左側(cè)導航菜單等,下面即是全部代碼。

          <Window x:Class="ScreenOverlayMessage.MainWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                  xmlns:local="clr-namespace:ScreenOverlayMessage"
                  mc:Ignorable="d"
                  xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" MouseDown="Window_MouseDown"
                  Title="MainWindow" Height="576" Width="1024" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="#FF423A3A">
              <Grid>
                  <materialDesign:DialogHost BorderBrush="{DynamicResource MaterialDesignDivider}">
                      <materialDesign:DialogHost.DialogContent>
                          <Grid Width="300" Height="150" HorizontalAlignment="Center">
                              <StackPanel Orientation="Horizontal" Margin="15">
                                  <materialDesign:PackIcon Kind="Folder" Foreground="{StaticResource PrimaryHueMidBrush}" Width="50" Height="50"/>
                                  <TextBlock Foreground="Gray" Width="200" Margin="15 5" TextWrapping="Wrap">
                                      允許應(yīng)用程序訪問您計算機上的照片、媒體和文件?
                                  </TextBlock>
                              </StackPanel>
                              <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="15">
                                  <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" Style="{DynamicResource MaterialDesignFlatButton}" Margin="4" VerticalAlignment="Center">
                                      拒絕
                                  </Button>
                                  <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" Style="{DynamicResource MaterialDesignFlatButton}" Margin="4" VerticalAlignment="Center">
                                      允許
                                  </Button>
                              </StackPanel>
                          </Grid>
                      </materialDesign:DialogHost.DialogContent>
                      <Grid>
                          <StackPanel Width="200" HorizontalAlignment="Left" Background="#FF472076">
                              <Grid Height="150" Background="White">
                                  <Image Source="https://img.dotnet9.com/logo.png"/>
                              </Grid>
                              <Button Style="{StaticResource MaterialDesignFlatButton}" Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}">
                                  <StackPanel Orientation="Horizontal" Height="30">
                                      <materialDesign:PackIcon Kind="PhotoAlbum" Width="20" Height="20" VerticalAlignment="Center"/>
                                      <TextBlock Text="照片" Margin="20 0" FontSize="15" VerticalAlignment="Center"/>
                                  </StackPanel>
                              </Button>
                              <Button Style="{StaticResource MaterialDesignFlatButton}" Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}">
                                  <StackPanel Orientation="Horizontal" Height="30">
                                      <materialDesign:PackIcon Kind="Music" Width="20" Height="20" VerticalAlignment="Center"/>
                                      <TextBlock Text="音樂" Margin="20 0" FontSize="15" VerticalAlignment="Center"/>
                                  </StackPanel>
                              </Button>
                          </StackPanel>
                      </Grid>
                  </materialDesign:DialogHost>
              </Grid>
          </Window>

          重點講解:

          • materialDesign:DialogHost:設(shè)置遮罩對話框覆蓋的地方,即彈出遮罩對話框后,背后有陰影的位置。
          • materialDesign:DialogHost.DialogContent:對話框內(nèi)容,即彈出的對話框配置

          后臺有個拖動窗體代碼:

          private void Window_MouseDown(object sender, MouseButtonEventArgs e)
          {
              DragMove();
          }

          四、文章參考

          建議直接打開大神視頻學習,他的YouTube上還有很多代碼視頻哦,參考:
          參考視頻: Design com WPF: https://www.youtube.com/watch?v=Dwi9o3K73XM

          五、代碼下載

          文章中代碼已經(jīng)全部貼出。

          除非注明,文章均由 Dotnet9 整理發(fā)布,歡迎轉(zhuǎn)載。

          轉(zhuǎn)載請注明本文地址:https://dotnet9.com/6769.html


          主站蜘蛛池模板: 国内精品视频一区二区八戒| 国产内射999视频一区| 日本免费一区二区三区最新vr| 精品成人av一区二区三区| 中文字幕一区在线播放| 亚洲另类无码一区二区三区| 日韩在线一区高清在线| 亚洲一区二区三区无码影院| 亚洲av无码一区二区乱子伦as| 亚洲国产精品一区二区第一页免 | 亚洲欧美一区二区三区日产| 国产精品无码一区二区三区免费| 精品国产鲁一鲁一区二区| 国产成人无码aa精品一区| 国产一区二区三区在线观看免费| 狠狠综合久久av一区二区| 无码视频免费一区二三区| 中文字幕无码一区二区免费| 国产精品视频一区二区噜噜 | 亚洲一区二区三区在线| 久久精品动漫一区二区三区| 在线视频国产一区| 久久国产精品视频一区| 国产日韩精品一区二区三区| 亚洲日本一区二区| 麻豆果冻传媒2021精品传媒一区下载| 福利一区二区视频| 日韩一本之道一区中文字幕| 一区二区三区四区精品视频 | 国产人妖视频一区二区破除 | 99久久综合狠狠综合久久一区| 日韩精品一区二区三区中文3d| 国产亚洲3p无码一区二区| 亚洲国产精品一区第二页| 亚洲精品一区二区三区四区乱码| 亚洲无码一区二区三区| 人妻体体内射精一区二区 | 亚洲国产精品自在线一区二区 | 日本无码一区二区三区白峰美| 无码一区二区三区亚洲人妻| 99精品国产一区二区三区|