美文网首页
jquery 选择器

jquery 选择器

作者: 程序猿的小生活 | 来源:发表于2022-07-05 08:50 被阅读0次
<html>
    <head>
        <script src="js/jquery.js"></script>
        <script src="js/test.js"></script>
        <meta charset="utf-8" />
        <title>jquery css</title>
    </head>
    <body >
    <div id="app">
        <button id="btn"></button>
    </div>
    <div id="singlestyle">
            <button id="btn"></button>
        
    </div>
            
            
    
    </body>
    <script>
$(function(){
    //选择#singlestyle下 #btn 更改样式
    $("#singlestyle #btn").text("你好")
        //选择#singlestyle和 #app 更改样式
$("#app,#singlestyle").css({
    "width":"200px",
    "height":"200px",
    "background-color":"pink",
    "margin-top":"20px"
})

    
})

        
    </script>
</html>

相关文章

  • jquery选择器书目录

    jquery选择器-基本选择器 jquery选择器-层级选择器 jquery选择器-基本过滤选择器 jquery选...

  • JQUERY一

    jQuery 元素选择器 jQuery 属性选择器 jQuery CSS 选择器 jQuery 事件 jQuery...

  • jQuser有选择器

    jQuery基本选择器 jQuery过滤选择器 jQuery层级选择器 jQuery筛选选择器(方法)

  • 选择器

    jQuery 元素选择器 jQuery 属性选择器 jQuery CSS 选择器

  • jQuery 基础

    jQuery jQuery操作DOM jQuery的选择器 基本选择器 层级选择器 过滤选择器 jQuery操作样...

  • jQuery

    jQuery jQuery操作DOM jQuery的选择器 基本选择器 层级选择器 过滤选择器 jQuery操作样...

  • jQuery选择器

    一、jQuery常用选择器 二、jQuery选择器优势 三、jQuery常用基本选择器 四、jQuery常用层次选...

  • JQuery基础知识

    jQuery操作DOM jQuery的选择器 基本选择器 层级选择器 过滤选择器 jQuery操作样式 css操作...

  • jQuery相关知识

    1、什么是jQuery选择器? jQuery选择器

  • jQuery选择器

    jQuery选择器 jQuery选择器完全继承了CSS的风格。学会使用选择器是学习jQuery的基础,jQuery...

网友评论

      本文标题:jquery 选择器

      本文链接:https://www.haomeiwen.com/subject/wjmdbrtx.html