摘要: 一、attr属性1返回文档中所有图像的src属性值$("img").attr("src");2.为所有图像设置src和alt属性$("img").attr({ src: "test.jpg", alt: "Test Image" });3、为所有图像设置src属性$("img").attr("src 阅读全文
posted @ 2021-11-04 21:10 阿里郎丶 阅读(169) 评论(0) 推荐(0) 编辑
摘要: CSS元素1.消除a标签下划线text-decoration: none;2.文本格式正常font-weight: normal;3.文本开头空两行text-indent: 2em;4.文本高度为2 line-heignt: 2em; 5.设置文本的水平对齐方式text-align: center/ 阅读全文
posted @ 2021-11-04 18:21 阿里郎丶 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1.id选择器 $(“#ids”)其中的ids是一个标签的id值而$(“#ids”)就是满足条件的那个标签! 2.类选择器 $(".myclass")其中的myclass就是class="myclass"的值,而$(".myclass")就是获取类为myclass的所有标签,有可能是一个标签有可能是 阅读全文
posted @ 2021-11-04 17:54 阿里郎丶 阅读(193) 评论(0) 推荐(0) 编辑