After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:Common tags and attributes in HTML (text font formatting)
<em> 斜体 <del>删除线 <span><
2019-01-040个赞
Courses in the relevant section:Common tags and attributes (hyperlinks) in HTML
<style> a{text-decoration:none;color:#000}//a标签隐藏下划线并且改变字体颜色为黑色; a:hover{text-decoration:underline;color:red;}//当鼠标移上去的显示下划线并且颜色为红色; </style>
2019-01-040个赞
Courses in the relevant section:Common tags and attributes in HTML (list)
<ol> <li></li>//有序标签 </ol> <ul> <li></li>//无序标签 </ul> <style> ul li{list-style:none;height:400px;width:200px;border:1px solid #ccc;margin:5px 0px;text-align:center;line-height:40px;}//li标签隐藏圆点,设置高和宽,表格为实线,边距左右5px上下0,text-align 文本居中 line-height 上下间距; ul li:before{content:url(地址);margin-right:20px;}//在文字前面用before,content引入地址 右边20px; ul li:after{content:url(图片地址)}//在文字后面插入一张图片用after,content引入地址; </style>
2019-01-040个赞
Courses in the relevant section:Common tags and attributes in HTML (form form)
<form method="get/post" action="地址url"> <input type=“text” name=“username” placeholder="请输入用户名">用户名 <input type="password" name="password" placeholder="请输入密码">密码 <button>登陆</button> </form> <style> input{height:8px;width:258px;border:1px solid #ccc;margin-top:20px;padding:20px;} //设置高和宽 边框设置实线颜色大小 外边距上20 内边距20px button{height:20px;width:300px;border:none;background:red;color;#fff;}//设置高和宽,去掉边框颜色,背景色红色,字体为白色; </style>
2019-01-040个赞
Courses in the relevant section:Common tags and attributes in HTML (table)
<table> <tr> <th>1</th>//th设置表头 <td colspan="3"></td>//colspan 设置3列合并 <td rowspan="2"></tb>//rowspan 设置2行合并 </tr> </table> <style> table{width:400px;height:200px;border:1px solid #ccc;border-collapse:collapse;} //设置高和宽,边框 实线颜色大小,border-collaps边框会合并为一个单一的边框 tr td{height:200px;border:1px solid #ccc;} </style>
2019-01-040个赞
Courses in the relevant section:Border styles in CSS
inset 内置阴影 box-shadow 外置阴影 border-radius 圆角 solid 实线 double 双实线 deshed虚线 dotted 点线
2019-01-050个赞
Courses in the relevant section:How to operate attributes with jQuery (1)
addClass() 增加元素 $('p').addClass('box man') removeClass() 移除元素$('p').removeClass('box') attr() 方法设置或者返回被选择的元素 $('p').attr('src','images/2.jgp') removeattr() 方法设置或者返回被选择的元素移除掉 $('p').removeattr('src','images/2.jgp') hasClass() 改方法对被选中元素是否包含指定class;
2019-01-120个赞
Courses in the relevant section:How to operate attributes with jQuery (2)
toggleClass() 改方法被选中元素进行删除和添加操作
2019-01-121个赞