首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏python3

    Python - Tkinter pac

    side = LEFT) greenbutton = Button(frame, text="Brown", fg="brown") greenbutton.pack( side = LEFT ) bluebutton = Button(frame, text="Blue", fg="blue") bluebutton.pack( side = LEFT ) blackbutton = Button(bottomframe

    1.2K20发布于 2020-01-10
  • 来自专栏跟Qt君学编程

    分享鼠标悬停按钮样式表

    4px 2px; background-color: white; color: black; border: 2px solid #008cba; } QPushButton#BlueButton :hover { background-color: #008cba; color: white; } QPushButton#BlueButton:pressed { background-color : #06AD56; } 蓝色悬停样式表2 /* Blue Button 2 */ QPushButton#BlueButton2 { background-color: #008cba; text-decoration: none; font-size: 16px; margin: 4px 2px; color: white; } QPushButton#BlueButton2 hover { background-color: white; border: 2px solid #008cba; color: black } QPushButton#BlueButton2

    1.8K10发布于 2019-08-27
  • 来自专栏移动开发

    Material Design Button 的 disable 效果

    <style name="<em>BlueButton</em>"> <item name="android:layout_height">@dimen/button_height</item> android:enabled="false" android:id="@+id/submit" style="@style/BlueButton

    1.2K50发布于 2018-10-18
  • 来自专栏大师级码师

    50个必备的实用jQuery代码段

    //这种情况下有些开发者使用: a.hasClass('blueButton') ? a.removeClass('blueButton') : a.addClass('blueButton'); //toggleClass允许你使用下面的语句来很容易地做到这一点 a.toggleClass ('blueButton'); 如何设置IE特有的功能: if ($.browser.msie) { // Internet Explorer就是个虐待狂 } 如何使用jQuery来代替一个元素:

    8.1K00发布于 2021-09-19
  • 来自专栏葡萄城控件技术团队

    UWP入门教程1——UWP的前世今生

    XAML <RelativePanel> <TextBox x:Name="textBox1" Text="textbox" Margin="5"/> <Button x:Name="<em>blueButton</em> "5" Background="Orange" Content="ButtonBelow" RelativePanel.RightOf="textBox1" RelativePanel.Below="<em>blueButton</em>

    1.7K50发布于 2018-01-10
  • 来自专栏葡萄城控件技术团队

    UWP 入门教程2——如何实现自适应用户界面

    RelativePanel>     <TextBox x:Name="textBox1" Text="textbox" Margin="5"/>     <Button x:Name="<em>blueButton</em> "5" Background="Orange" Content="ButtonBelow" RelativePanel.RightOf="textBox1" RelativePanel.Below="<em>blueButton</em>

    4K50发布于 2018-01-10
  • 来自专栏前端达人

    Tailwind CSS,值得2024年的你一试吗?

    import React from 'react'; const BlueButton = () => { return ( <button className="bg-blue text-white font-bold py-2 px-4 rounded"> Click me </button> ); }; export default BlueButton

    1.8K10编辑于 2024-01-14
  • 《Java 程序设计》第 15 章 - 事件处理与常用控件

    new RadioButton("绿色"); greenButton.setToggleGroup(colorGroup); RadioButton blueButton = new RadioButton("蓝色"); blueButton.setToggleGroup(colorGroup); // 监听颜色选择变化 maleButton, femaleButton, otherButton, selectedLabel, colorLabel, redButton, greenButton, blueButton

    10710编辑于 2026-01-20
  • 来自专栏愿天堂没有BUG(公众号同名)

    深入Java Swing用户界面组件布局管理器:网格布局+面板+边界布局

    JPanel panel = new JPanel( ); panel.add(yellowButton); panel.add(blueButton); panel.add(redButton); frame.add

    5.1K30编辑于 2022-10-28
  • 来自专栏愿天堂没有BUG(公众号同名)

    Java事件处理基础实例:处理按钮点击+捕获窗口事件+改变观感

    在下面的例子中,可以将ButtonPanel 转换为动作监听器: 然后,将面板本身设置为三个按钮的监听器: yellowButton.addActionListener(this); blueButton.addActionListener event.getSource( ); 然后,actionPerformed方法可以检查哪个按钮是事件源: if (source == yellowButton) . . . else if (source == blueButton

    4.9K30编辑于 2022-10-28
领券