حالت آفلاین — محتوا از حافظهٔ کش نمایش داده می‌شود

ساخت دکمه نئونی

تمرین آسان 2196 visibility link download flag

دکمه ای به شکل زیر بسازید:

که وقتی نشانگر موس روی آن قرار گرفت به شکل زیر درآید:

reply 19

visibility
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>دکمه نئونی</title>
</head>
<style>
    a{
        color: rgb(39, 118, 221); 
        border: 2px solid rgb(39, 118, 221);
        border-radius: 10px;
        text-decoration: none;
        font-weight: bold;
        padding: 5px 30px 5px 30px;
        text-align: center;
        box-shadow: 0 0 5px rgb(39, 118, 221);
        text-shadow: 0 0 4px rgb(39, 118, 221);
   
    }
   a:hover{
        background-color: rgb(39, 118, 221);
        color: white;
        transition:  0.5s;
    }

</style>
<body>
    <a href="#">متن شما</a>
    
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>دکمه نعونی</title>
    <style>
        button {
            background-color: #ffffff;
            border-color: #3978e4;
            color: #3978e4;
            width: 200px;
            font-size: 25;
            border-radius: 10px;
            text-decoration: none;
            padding: 5px 30px 5px 30px;
            text-align: center;
            box-shadow: 0 0 5px #4d89f1;
            text-shadow: 0 0 4px rgb(49, 134, 244);
            align-items: center;
                }
        button:hover {
            background-color:#3978e4 ;
            color: #fff1f1;
        }
    </style>
</head>
<body>

    <button>ثبت نام </button>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       h3{
        color: rgb(56, 132, 247);background-color: white;width: 250px;border: 1px solid rgb(56, 132, 247);text-align: center;box-shadow: 0px 0px 4px rgb(56, 132, 247) ;border-radius: 9px;height: 35px;padding-top: 7px;font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif ;
       }
       h3:hover{
        background-color:rgb(56, 132, 247) ;color: white;
       }
    </style>
</head>
<body>
     <h3>ثبت نام</h3>
</body>
</html>
from tkinter import *

class Buttttn:
    def __init__(self):
        self.windo = None
        self.btn = None

    def btn_enter(self,e):
        self.btn.config(background="blue",foreground="white",cursor="hand2")
    def btn_leave(self,e):
        self.btn.config(background="white",foreground="blue",cursor="arrow")
    def click(self):
        self.windo = Tk()
        self.windo.title("6545")
        self.windo.geometry("300x160")

        self.btn = Button(self.windo,text="ثبت نام",font=("arial",14),bg="white",fg="blue",width=20,border=10,height=2)
        self.btn.pack(padx=10,pady=10)

        self.btn.bind("<Enter>",self.btn_enter)
        self.btn.bind("<Leave>",self.btn_leave)

        self.windo.mainloop()

app = Buttttn()
app.click()
from tkinter import Tk, Button

def register_action():
    pass

app_window = Tk()
app_window.title("دکمه ثبت نام")
app_window.geometry("300x100")

register_button = Button(
    app_window,
    text="ثبت نام",
    command=register_action,
    bg="#ffffff",
    fg="#3978e4",
    width=20,
    font=("Arial", 14),
    relief="solid",
    borderwidth=1,
    padx=10,
    pady=5,
)

register_button.pack(expand=True)

app_window.mainloop()
پاسخ هوش مصنوعی Ai Python
<!DOCTYPE html>
<html>
  <head>
    <style>
      a {
        color: rgb(0, 140, 255);
        border: 2px solid rgb(0, 140, 255);
        padding: 5px;
        text-decoration: none;
        box-shadow:0 0 5px rgb(0, 140, 255);
        text-shadow: 0 0 2px rgb(0, 140, 255);
        border-radius: 5px;
        font-weight: bold;
        font-size: 20px;
      }
      a:hover {
        color:white;
        background-color:rgb(0, 140, 255);
      }
    </style>
  </head>
  <body>
    <a href="#">Go To Home</a>
  </body>
</html>
<!DOCTYPE html>
<html lang="fa">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SignUp</title>
    <style>
        * {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: white;
        }


        .button {
            padding: 15px 30px;
            background-color: rgba(255, 255, 255, 0.76);
            color: blue;
            border: rgb(0, 140, 255) 3px solid;
            width: 200px;
            height: 50px;
            box-shadow: 0 4px 8px rgba(0, 200, 255, 0.83);
            text-decoration: none;
            font-weight: bold;
            text-transform: uppercase;
            display: inline-block;
            margin: 15px;
            outline: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.4s ease;
            font-size: 14px;
            text-decoration: none;
            text-align: center;
        }

        .button:hover {
            border-radius: 4px;
            background-color: #0056b3;
            padding: 10px;
            color: white;
            box-shadow: 0 4px 8px rgba(0, 200, 255, 0.83);
            border: #0056b3 2px solid;
            transform: scale(1.1);
        }

        .easy {
            position: absolute;
            color: rgba(0, 200, 255, 0.83);
            bottom: 20px;
            text-align: center;
            font-style: italic;
        }
    </style>
</head>

<body>
    <button class="button">SignUp</button>
    <div class="easy">
        <h3>easy!</h3>
    </div>
</body>

</html>
CSS___________________
    div
    {
      display: inline-block;
      padding: 1px 40px;
      border: 2px solid blue;
      color: blue;
      border-radius: 5px;
      user-select: none;
      transition:all .5s;
    }

    div:hover
    {
      background-color: blue;
      color: white;
    }

HTML__________________
   <div>
     ثبت نام
   </div>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Neon Buttom</title>
  <style>
    body{
      margin: 0;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: lightgray;
    }
    div{
      background-color: rgba(43, 86, 109, 0.856);
      width: 300px;
      height: 300px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 20px;
      transition: 0.3s;
    }
    a{
      text-decoration: none;
      border: 2px solid rgb(80, 80, 218);
      border-radius: 10px;
      background-color: rgb(255, 255, 255);
      color: rgb(80, 80, 218);
      display: inline-block;
      width: 150px;
      padding: 10px;
      box-sizing: border-box;
      text-align: center;
      box-shadow: 0 0 5px rgb(80, 80, 218);
      text-shadow: 0 0 2px rgb(80, 80, 218);
      transition: 0.2s;
    }
    a:hover{
      background-color: rgb(80, 80, 218);
      color: white;
      border: 2px solid white;
    }
    div:hover{
      transform: scale(1.1);
    }
  </style>
</head>
<body>
  <div>
    <a href="#">Sign-Up</a>
  </div>
</body>
</html>
<!DOCTYPE html>
<html lang="fa">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>دکمه نئونی</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <button class="neon-button">تماس با ما</button>
</body>
</html>
<< صفحه قبل 1 2 صفحه بعد >>

ارسال جواب

جوابت را با Markdown بنویس و ثبت کن

×
بستن