摘要: 在XML文件中声明了EditText控件, 在class文件中,使用 .setText(); 方法获取到EditText的值然后上传是没有问题的,但是从接口获取数据,并放置在EditText中,实现输入框拥有默认值时,使用 .setText();方法时出现了如下错误: 查明发现返回的数据是数字,因此 阅读全文
posted @ 2020-10-19 18:02 null_lii 阅读(1228) 评论(0) 推荐(0)
摘要: 1.列表 ul li (1)nav标签 作为标注一个导航链接的区域,建议使用id=“nav”来使用 #nav{ background: red; width: 300px; } <div id="nav"> <a href="#">我是一个链接</a> </div> 区域宽度就是300px (2)l 阅读全文
posted @ 2020-10-19 15:52 null_lii 阅读(93) 评论(0) 推荐(0)
摘要: <style > h1 { text-shadow: 10px 10px 10px #00FF00; } </style> </head> <body> <h1>ksdjfghksjdgb</h1> </body> 页面效果如下: 前两个px单位是控制阴影的偏移量,可以发现这里以右为正,下为正,则阴 阅读全文
posted @ 2020-10-18 16:14 null_lii 阅读(118) 评论(0) 推荐(0)
摘要: 1.常用字体元素 (1)font-style 用于规定斜体文本 normal - 文本正常显示 italic - 文本斜体显示 oblique - 文本倾斜显示 个人理解,italic是把每个文字都有所改动,来改变整体风格,而oblique是把正常文本倾斜,通常情况下,二者外观一致 (2)font- 阅读全文
posted @ 2020-10-18 15:44 null_lii 阅读(142) 评论(0) 推荐(0)
摘要: 常用且重要 <style > /*h1[id]{*/ /* background: red;*/ /*}*/ h1[id=iii]{ background: chocolate; } h1[class*=aaa]{ background: red; } a[href^=http]{ backgrou 阅读全文
posted @ 2020-10-17 16:28 null_lii 阅读(99) 评论(0) 推荐(0)
摘要: 为选择器添加一些特殊效果或者进行约束 1.当需要选中ul中的第一个元素时 <ul> <li>aaa</li> <li>bbb</li> <li>ccc</li> </ul> ul li:first-child{ background: red; } 2.当需要选中ul中的最后一个元素时 ul li: 阅读全文
posted @ 2020-10-16 18:19 null_lii 阅读(151) 评论(0) 推荐(0)
摘要: 1.后代选择器 body h1{ background: red; } 选择body下的所有h1标签并设定属性 2.子选择器 body>h1{ background: aqua; } 选择body下的最外层所属的所有h1并设定属性 3.相邻兄弟选择器 .a1 +h1{ background: aqu 阅读全文
posted @ 2020-10-16 17:42 null_lii 阅读(126) 评论(0) 推荐(0)
摘要: 1.标签选择器 <style> h1{ color: red; } </style> 更改所有标签 2.类选择器 <h1 class="a1">text</h1> <h1 class="a1">text1</h1> <style> .a1{ color: antiquewhite; } </styl 阅读全文
posted @ 2020-10-16 17:13 null_lii 阅读(137) 评论(0) 推荐(0)
摘要: 1.行内样式 <h1 style="color:red">行内样式<h1> 2.内部样式 在html的<head>中写明 <style> h1{ color: red; } </style> 3.外部样式(导入式) 新建stylesheet文件写明 h1{ color: red; } 然后在<hea 阅读全文
posted @ 2020-10-16 16:54 null_lii 阅读(93) 评论(0) 推荐(0)